Commit f3fde7c2 authored by Chris Allegretta's avatar Chris Allegretta
Browse files

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
parent 5f07180e
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment