aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.c
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-05-08 20:56:44 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-05-22 08:44:19 +0530
commit3e54217ae91cb97c85540be649c7cd2aff2ceb69 (patch)
treef98b778dad292ed9d1d7e0d53c08df53ecafcc4d /src/nnn.c
parent0eec240260a69ac6388cea962435099a2ff0fd34 (diff)
downloadnnn-3e54217ae91cb97c85540be649c7cd2aff2ceb69.tar.gz
Fix build break
Diffstat (limited to 'src/nnn.c')
-rw-r--r--src/nnn.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nnn.c b/src/nnn.c
index fe62eb3..272aeda 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -3136,6 +3136,7 @@ nochange:
case SEL_CLICK:
if (getmouse(&event) != OK)
break;
+
// Handle clicking on a context at the top:
if (event.y == 0) {
// Get context from: "[1 2 3 4]..."
@@ -3155,6 +3156,7 @@ nochange:
}
break;
}
+
// Handle clicking on a file:
if (2 <= event.y && event.y < LINES - 2) {
r = 0;
@@ -3168,10 +3170,9 @@ nochange:
cur = r;
// Single click just selects, double click also opens
if (event.bstate != BUTTON1_DOUBLE_CLICKED)
- break;
- } else {
+ break; // fallthrough
+ } else
break;
- }
case SEL_NAV_IN: // fallthrough
case SEL_GOIN:
/* Cannot descend in empty directories */