diff --git a/files.c b/files.c index 28fd5bbdc85b860e6cb88b839dac7825ebc34346..3b4c5adb12cfda419a795941f39af321c2363d9c 100644 --- 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 */