mirror of
https://github.com/jarun/nnn.git
synced 2025-02-26 03:01:32 +00:00
Fix build break
This commit is contained in:
parent
e557bd2ed9
commit
1fb1ab55a7
2 changed files with 5 additions and 9 deletions
|
@ -66,7 +66,7 @@ It runs smoothly on the Pi, [Termux](https://www.youtube.com/watch?v=AbaauM7gUJw
|
||||||
- Minimizes screen refresh with fast line redraws
|
- Minimizes screen refresh with fast line redraws
|
||||||
- Tiny binary (typically less than 100KB)
|
- Tiny binary (typically less than 100KB)
|
||||||
- Portable
|
- Portable
|
||||||
- Statically-linked binary available
|
- Static binary available (no need to install)
|
||||||
- Language-agnostic plugins
|
- Language-agnostic plugins
|
||||||
- Minimal library deps, easy to compile
|
- Minimal library deps, easy to compile
|
||||||
- Compile in/out features with make variables
|
- Compile in/out features with make variables
|
||||||
|
|
12
src/nnn.c
12
src/nnn.c
|
@ -5820,14 +5820,10 @@ nochange:
|
||||||
case SEL_CDBEGIN: // fallthrough
|
case SEL_CDBEGIN: // fallthrough
|
||||||
case SEL_CDLAST: // fallthrough
|
case SEL_CDLAST: // fallthrough
|
||||||
case SEL_CDROOT:
|
case SEL_CDROOT:
|
||||||
if (sel == SEL_CDHOME)
|
dir = (sel == SEL_CDHOME) ? home
|
||||||
dir = home;
|
: ((sel == SEL_CDBEGIN) ? ipath
|
||||||
else if (sel == SEL_CDBEGIN)
|
: ((sel == SEL_CDLAST) ? lastdir
|
||||||
dir = ipath;
|
: "/" /* SEL_CDROOT */));
|
||||||
else if (sel == SEL_CDLAST)
|
|
||||||
dir = lastdir;
|
|
||||||
else
|
|
||||||
dir = "/"; /* SEL_CDROOT */
|
|
||||||
|
|
||||||
if (!dir || !*dir) {
|
if (!dir || !*dir) {
|
||||||
printwait(messages[MSG_NOT_SET], &presel);
|
printwait(messages[MSG_NOT_SET], &presel);
|
||||||
|
|
Loading…
Add table
Reference in a new issue