From: Arun Prakash Jana Date: Tue, 6 Aug 2019 20:33:52 +0000 (+0530) Subject: Fix #314 X-Git-Tag: v2.7~167 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=8c2c7e9e9753351082979b78c91e7fa7f75893c8;p=nnn.git Fix #314 --- diff --git a/src/nnn.c b/src/nnn.c index db98d12b..7aa7c382 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -3465,13 +3465,13 @@ nochange: } /* Handle clicking on a file */ - r = curscroll + (event.y - 2); - if (2 <= event.y && event.y < xlines - 2 && r < ndents) { + if (2 <= event.y && event.y <= ndents + 1) { + r = curscroll + (event.y - 2); move_cursor(r, 1); /*Single click just selects, double click also opens */ if (event.bstate != BUTTON1_DOUBLE_CLICKED) - goto nochange; + break; } else { if (cfg.filtermode) presel = FILTER;