mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Fix build break
This commit is contained in:
parent
45d96ee60d
commit
06651f3f00
13
src/nnn.c
13
src/nnn.c
|
@ -5773,9 +5773,10 @@ nochange:
|
||||||
case SEL_HOME: // fallthrough
|
case SEL_HOME: // fallthrough
|
||||||
case SEL_END: // fallthrough
|
case SEL_END: // fallthrough
|
||||||
case SEL_FIRST:
|
case SEL_FIRST:
|
||||||
|
if (ndents) {
|
||||||
g_state.move = 1;
|
g_state.move = 1;
|
||||||
if (ndents)
|
|
||||||
handle_screen_move(sel);
|
handle_screen_move(sel);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case SEL_CDHOME: // fallthrough
|
case SEL_CDHOME: // fallthrough
|
||||||
case SEL_CDBEGIN: // fallthrough
|
case SEL_CDBEGIN: // fallthrough
|
||||||
|
@ -6350,12 +6351,9 @@ nochange:
|
||||||
presel = 0;
|
presel = 0;
|
||||||
|
|
||||||
/* Check if it's a dir or file */
|
/* Check if it's a dir or file */
|
||||||
if (r == 'f') {
|
if (r == 'f' || r == 'd') {
|
||||||
mkpath(path, tmp, newpath);
|
mkpath(path, tmp, newpath);
|
||||||
ret = xmktree(newpath, FALSE);
|
ret = xmktree(newpath, r == 'f' ? FALSE : TRUE);
|
||||||
} else if (r == 'd') {
|
|
||||||
mkpath(path, tmp, newpath);
|
|
||||||
ret = xmktree(newpath, TRUE);
|
|
||||||
} else if (r == 's' || r == 'h') {
|
} else if (r == 's' || r == 'h') {
|
||||||
if (tmp[0] == '@' && tmp[1] == '\0')
|
if (tmp[0] == '@' && tmp[1] == '\0')
|
||||||
tmp[0] = '\0';
|
tmp[0] = '\0';
|
||||||
|
@ -6505,8 +6503,7 @@ nochange:
|
||||||
/* Repopulate as directory content may have changed */
|
/* Repopulate as directory content may have changed */
|
||||||
goto begin;
|
goto begin;
|
||||||
case SEL_UMOUNT:
|
case SEL_UMOUNT:
|
||||||
tmp = ndents ? pdents[cur].name : NULL;
|
if (!unmount((ndents ? pdents[cur].name : NULL), newpath, &presel, path))
|
||||||
if (!unmount(tmp, newpath, &presel, path))
|
|
||||||
goto nochange;
|
goto nochange;
|
||||||
|
|
||||||
/* Dir removed, go to next entry */
|
/* Dir removed, go to next entry */
|
||||||
|
|
Loading…
Reference in a new issue