]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix build break
authorArun Prakash Jana <engineerarun@gmail.com>
Wed, 8 May 2019 15:26:44 +0000 (20:56 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Wed, 22 May 2019 03:14:19 +0000 (08:44 +0530)
.clang-tidy
README.md
src/nnn.c

index c03204c9370d60c64c438503148cfdea92b3a59a..885adc7c35fa14a78308621a4b06970b3326c79e 100644 (file)
@@ -10,4 +10,6 @@ CheckOptions:
     value:           '_t'
   - key:             fuchsia-restrict-system-includes.Includes
     value:           '*,-stdint.h,-stdbool.h'
+  - key:             readability-function-size.StatementThreshold
+    value:           '850'
 ...
index 9083f9a8acf8a2836c0c5736c01c4a6e00c6a197..9acbcb0fc0da76f535c7287c12243f7b03a2453c 100644 (file)
--- a/README.md
+++ b/README.md
@@ -98,6 +98,7 @@ It runs on Linux, macOS, Raspberry Pi, BSD, Cygwin, Linux subsystem for Windows
   - Detailed file information
   - Media information (needs mediainfo/exiftool)
 - Convenience
+  - Mouse support
   - Create, rename files and directories
   - Select files across dirs; all/range selection
   - Copy, move, delete, archive, link selection
index fe62eb395a152f6f81819ac9500e84ede66063b2..272aedadeebd37a05a2f08c571227db8868db2ab 100644 (file)
--- 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 */