Browse Source

Fix build break

master
Arun Prakash Jana 6 years ago
parent
commit
3e54217ae9
No known key found for this signature in database GPG Key ID: A75979F35C080412
3 changed files with 7 additions and 3 deletions
  1. +2
    -0
      .clang-tidy
  2. +1
    -0
      README.md
  3. +4
    -3
      src/nnn.c

+ 2
- 0
.clang-tidy View File

@@ -10,4 +10,6 @@ CheckOptions:
value: '_t' value: '_t'
- key: fuchsia-restrict-system-includes.Includes - key: fuchsia-restrict-system-includes.Includes
value: '*,-stdint.h,-stdbool.h' value: '*,-stdint.h,-stdbool.h'
- key: readability-function-size.StatementThreshold
value: '850'
... ...

+ 1
- 0
README.md View File

@@ -98,6 +98,7 @@ It runs on Linux, macOS, Raspberry Pi, BSD, Cygwin, Linux subsystem for Windows
- Detailed file information - Detailed file information
- Media information (needs mediainfo/exiftool) - Media information (needs mediainfo/exiftool)
- Convenience - Convenience
- Mouse support
- Create, rename files and directories - Create, rename files and directories
- Select files across dirs; all/range selection - Select files across dirs; all/range selection
- Copy, move, delete, archive, link selection - Copy, move, delete, archive, link selection


+ 4
- 3
src/nnn.c View File

@@ -3136,6 +3136,7 @@ nochange:
case SEL_CLICK: case SEL_CLICK:
if (getmouse(&event) != OK) if (getmouse(&event) != OK)
break; break;

// Handle clicking on a context at the top: // Handle clicking on a context at the top:
if (event.y == 0) { if (event.y == 0) {
// Get context from: "[1 2 3 4]..." // Get context from: "[1 2 3 4]..."
@@ -3155,6 +3156,7 @@ nochange:
} }
break; break;
} }

// Handle clicking on a file: // Handle clicking on a file:
if (2 <= event.y && event.y < LINES - 2) { if (2 <= event.y && event.y < LINES - 2) {
r = 0; r = 0;
@@ -3168,10 +3170,9 @@ nochange:
cur = r; cur = r;
// Single click just selects, double click also opens // Single click just selects, double click also opens
if (event.bstate != BUTTON1_DOUBLE_CLICKED) if (event.bstate != BUTTON1_DOUBLE_CLICKED)
break; break; // fallthrough
} else { } else
break; break;
}
case SEL_NAV_IN: // fallthrough case SEL_NAV_IN: // fallthrough
case SEL_GOIN: case SEL_GOIN:
/* Cannot descend in empty directories */ /* Cannot descend in empty directories */


||||||
x
 
000:0
Loading…
Cancel
Save