src/nnn.c | 14 +++++++------- diff --git a/src/nnn.c b/src/nnn.c index a1628480c13c2bb95c8bce1c595407224d12cad1..acc65128f7078ea8c71b37e5680cb8fc82624de0 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -4972,6 +4972,13 @@ #endif 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) { @@ -4987,13 +4994,6 @@ /* If STDIN is no longer a tty (closed) we should exit */ if (!isatty(STDIN_FILENO) && !cfg.picker) { free(mark); 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);