mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Cancel option for open with
This commit is contained in:
parent
b65bc92e73
commit
9b384799b7
10
src/nnn.c
10
src/nnn.c
|
@ -467,7 +467,7 @@ static const char * const messages[] = {
|
||||||
"create context %d?",
|
"create context %d?",
|
||||||
"'c'urrent / 's'election?",
|
"'c'urrent / 's'election?",
|
||||||
"'f'ile / 'd'ir / 's'ym / 'h'ard?",
|
"'f'ile / 'd'ir / 's'ym / 'h'ard?",
|
||||||
"cli mode?",
|
"'c'li / 'g'ui?",
|
||||||
"overwrite?",
|
"overwrite?",
|
||||||
"'s'ave / 'l'oad / 'r'estore?",
|
"'s'ave / 'l'oad / 'r'estore?",
|
||||||
"Quit all contexts?",
|
"Quit all contexts?",
|
||||||
|
@ -5032,8 +5032,12 @@ nochange:
|
||||||
/* Confirm if app is CLI or GUI */
|
/* Confirm if app is CLI or GUI */
|
||||||
if (sel == SEL_OPENWITH) {
|
if (sel == SEL_OPENWITH) {
|
||||||
r = get_input(messages[MSG_CLI_MODE]);
|
r = get_input(messages[MSG_CLI_MODE]);
|
||||||
(r == 'y' || r == 'Y') ? (r = F_CLI)
|
r = (r == 'c' ? F_CLI :
|
||||||
: (r = F_NOWAIT | F_NOTRACE | F_MULTI);
|
(r == 'g' ? F_NOWAIT | F_NOTRACE | F_MULTI : 0));
|
||||||
|
if (!r) {
|
||||||
|
cfg.filtermode ? presel = FILTER : clearprompt();
|
||||||
|
goto nochange;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (sel) {
|
switch (sel) {
|
||||||
|
|
Loading…
Reference in a new issue