aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-01-14 01:10:53 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-01-14 01:10:53 +0530
commit589065f9abde49e6bb8c343a28a093dbcf051d77 (patch)
tree38f78e93ac735093d82fb0cf504310bc7f297934 /src
parent69efec865aa9ac641417ccdd75d1e7f0e34939b8 (diff)
downloadnnn-589065f9abde49e6bb8c343a28a093dbcf051d77.tar.gz
Remove redundant question
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 8ffb72e..8383ff7 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -474,7 +474,6 @@ static char * const utils[] = {
#define MSG_BOOKMARK_KEYS 36
#define MSG_INVALID_REG 37
#define MSG_ORDER 38
-#define MSG_LIST_SEL 39
static const char * const messages[] = {
"no traversal",
@@ -516,7 +515,6 @@ static const char * const messages[] = {
"bookmark keys:",
"invalid regex",
"toggle 'a'u / 'd'u / 'e'xtn / 'r'everse / 's'ize / 't'ime / 'v'ersion?",
- "0 selected, list selection file?"
};
/* Supported configuration environment variables */
@@ -1103,13 +1101,8 @@ static int editselection(void)
struct stat sb;
time_t mtime;
- if (!selbufpos) {
- fd = get_input(messages[MSG_LIST_SEL]);
- if ((fd == 'y' || fd == 'Y') && !listselfile())
- return 0;
-
- return 1;
- }
+ if (!selbufpos)
+ return listselfile();
fd = create_tmp_file();
if (fd == -1) {