diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2020-02-01 22:00:53 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2020-02-01 22:00:53 +0530 |
commit | 897f01c2c31f3e1de51fc13e081d9d6d7356dbe3 (patch) | |
tree | 1e859223baa2818234d2902a232fc1bd46ca4a61 /src | |
parent | 2390ac7b745904af4fb6810fd51f1816bd53df81 (diff) | |
download | nnn-897f01c2c31f3e1de51fc13e081d9d6d7356dbe3.tar.gz |
Reduce the number of redundant checks
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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; |