mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Show 'invalid key' prompt in more places (#415)
This commit is contained in:
parent
c24efdbedb
commit
c5cd668a52
14
src/nnn.c
14
src/nnn.c
|
@ -3339,7 +3339,7 @@ static bool remote_mount(char *newpath, int *presel)
|
||||||
cmd = utils[UTIL_RCLONE];
|
cmd = utils[UTIL_RCLONE];
|
||||||
env = xgetenv("NNN_RCLONE_OPTS", "rclone mount");
|
env = xgetenv("NNN_RCLONE_OPTS", "rclone mount");
|
||||||
} else {
|
} else {
|
||||||
printwait(messages[MSG_FAILED], presel);
|
printwait(messages[MSG_INVALID_KEY], presel);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5338,8 +5338,16 @@ nochange:
|
||||||
goto begin;
|
goto begin;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (r != 'm' || !archive_mount(dents[cur].name, path, newpath, &presel))
|
if (r != 'm') {
|
||||||
goto nochange; // fallthrough
|
printwait(messages[MSG_INVALID_KEY], &presel);
|
||||||
|
goto nochange;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!archive_mount(dents[cur].name, path, newpath, &presel)) {
|
||||||
|
printwait(messages[MSG_FAILED], &presel);
|
||||||
|
goto nochange;
|
||||||
|
}
|
||||||
|
// fallthrough
|
||||||
case SEL_REMOTE:
|
case SEL_REMOTE:
|
||||||
if (sel == SEL_REMOTE && !remote_mount(newpath, &presel))
|
if (sel == SEL_REMOTE && !remote_mount(newpath, &presel))
|
||||||
goto nochange;
|
goto nochange;
|
||||||
|
|
Loading…
Reference in a new issue