mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Fix build break
This commit is contained in:
parent
56b96cbf74
commit
cb9e785145
16
src/nnn.c
16
src/nnn.c
|
@ -5781,20 +5781,14 @@ nochange:
|
||||||
case SEL_CDBEGIN: // fallthrough
|
case SEL_CDBEGIN: // fallthrough
|
||||||
case SEL_CDLAST: // fallthrough
|
case SEL_CDLAST: // fallthrough
|
||||||
case SEL_CDROOT:
|
case SEL_CDROOT:
|
||||||
switch (sel) {
|
if (sel == SEL_CDHOME)
|
||||||
case SEL_CDHOME:
|
|
||||||
dir = home;
|
dir = home;
|
||||||
break;
|
else if (sel == SEL_CDBEGIN)
|
||||||
case SEL_CDBEGIN:
|
|
||||||
dir = ipath;
|
dir = ipath;
|
||||||
break;
|
else if (sel == SEL_CDLAST)
|
||||||
case SEL_CDLAST:
|
|
||||||
dir = lastdir;
|
dir = lastdir;
|
||||||
break;
|
else
|
||||||
default: /* SEL_CDROOT */
|
dir = "/"; /* SEL_CDROOT */
|
||||||
dir = "/";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!dir || !*dir) {
|
if (!dir || !*dir) {
|
||||||
printwait(messages[MSG_NOT_SET], &presel);
|
printwait(messages[MSG_NOT_SET], &presel);
|
||||||
|
|
Loading…
Reference in a new issue