commit f3fde7c2fcbf395df9f7076b654752d855fc6629
parent 5f07180e8ae78b4de57305cad38bda89fbbc5fd9
Author: Chris Allegretta <chrisa@asty.org>
Date: Sun, 6 May 2001 03:02:21 +0000
Fix not being able to select last item in browser with mouse
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@642 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/files.c b/files.c
@@ -1214,7 +1214,7 @@ char *do_browser(char *inpath)
/* If we're off the screen, reset to the last item.
If we clicked where we did last time, select this name! */
- if (selected >= numents - 1)
+ if (selected > numents - 1)
selected = numents - 1;
else if (selectedbackup == selected) {
ungetch('s'); /* Unget the 'select' key */