aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-08-07 02:03:52 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-08-07 02:03:52 +0530
commit8c2c7e9e9753351082979b78c91e7fa7f75893c8 (patch)
tree9e29beb39a76a33654f3019e0057635bb8fe6776
parentd23c2997afc18caa7695688226effd10ca3a6a3c (diff)
downloadnnn-8c2c7e9e9753351082979b78c91e7fa7f75893c8.tar.gz
Fix #314
-rw-r--r--src/nnn.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nnn.c b/src/nnn.c
index db98d12..7aa7c38 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;