src/nnn.c | 11 ++--------- diff --git a/src/nnn.c b/src/nnn.c index 8ffb72e25f5dcc81b9bdc5f0aec4de3322f85af2..8383ff7ed2b2adbb69c852f1c93edf2dc14e1a7f 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -474,7 +474,6 @@ #define MSG_PLUGIN_KEYS 35 #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 @@ "plugin keys:", "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 @@ ssize_t count; 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) {