浏览代码

Reduce the number of redundant checks

master
Arun Prakash Jana 5 年前
父节点
当前提交
897f01c2c3
找不到此签名对应的密钥 GPG 密钥 ID: A75979F35C080412
共有 1 个文件被更改,包括 7 次插入7 次删除
  1. +7
    -7
      src/nnn.c

+ 7
- 7
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;


正在加载...
取消
保存