aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/nnn.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/nnn.c b/src/nnn.c
index a162848..acc6512 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4972,6 +4972,13 @@ begin:
while (1) {
redraw(path);
+
+ /* Display a one-time message */
+ if (g_listpath && (g_states & STATE_MSG)) {
+ g_states &= ~STATE_MSG;
+ printwait(messages[MSG_IGNORED], &presel);
+ }
+
nochange:
/* Exit if parent has exited */
if (getppid() == 1) {
@@ -4989,13 +4996,6 @@ nochange:
return _FAILURE;
}
- /* Display a one-time message */
- if (g_states & STATE_MSG) {
- g_states &= ~STATE_MSG;
- printwait(messages[MSG_IGNORED], &presel);
- goto nochange;
- }
-
sel = nextsel(presel);
if (presel)
presel = 0;