ソースを参照

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;


読み込み中…
キャンセル
保存