diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2019-12-06 20:21:31 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2019-12-06 20:21:31 +0530 |
commit | 9b384799b7945b65493ba1b25be62aea692269c3 (patch) | |
tree | f2fb044dc5cb75a54cda2f5cda1e93e39b944561 | |
parent | b65bc92e736038b47a6c8199b525c82c67eb8cd6 (diff) | |
download | nnn-9b384799b7945b65493ba1b25be62aea692269c3.tar.gz |
Cancel option for open with
-rw-r--r-- | src/nnn.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -467,7 +467,7 @@ static const char * const messages[] = { "create context %d?", "'c'urrent / 's'election?", "'f'ile / 'd'ir / 's'ym / 'h'ard?", - "cli mode?", + "'c'li / 'g'ui?", "overwrite?", "'s'ave / 'l'oad / 'r'estore?", "Quit all contexts?", @@ -5032,8 +5032,12 @@ nochange: /* Confirm if app is CLI or GUI */ if (sel == SEL_OPENWITH) { r = get_input(messages[MSG_CLI_MODE]); - (r == 'y' || r == 'Y') ? (r = F_CLI) - : (r = F_NOWAIT | F_NOTRACE | F_MULTI); + r = (r == 'c' ? F_CLI : + (r == 'g' ? F_NOWAIT | F_NOTRACE | F_MULTI : 0)); + if (!r) { + cfg.filtermode ? presel = FILTER : clearprompt(); + goto nochange; + } } switch (sel) { |