aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nnn.c b/src/nnn.c
index ea09ef0..85d52fe 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4551,6 +4551,11 @@ nochange:
}
}
+ if (!sb.st_size) {
+ printwait(messages[MSG_EMPTY_FILE], &presel);
+ goto nochange;
+ }
+
/* If NNN_USE_EDITOR is set, open text in EDITOR */
if (cfg.useeditor &&
#ifdef FILE_MIME_OPTS
@@ -4565,11 +4570,6 @@ nochange:
continue;
}
- if (!sb.st_size) {
- printwait(messages[MSG_EMPTY_FILE], &presel);
- goto nochange;
- }
-
if (!regexec(&archive_re, dents[cur].name, 0, NULL, 0)) {
r = get_input(messages[MSG_ARCHIVE_OPTS]);
if (r == 'l' || r == 'x') {