diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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') { |