ソースを参照

Use do-while instead of while

master
Arun Prakash Jana 4年前
コミット
feec63ebb3
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: A75979F35C080412
1個のファイルの変更3行の追加3行の削除
  1. +3
    -3
      src/nnn.c

+ 3
- 3
src/nnn.c ファイルの表示

@@ -712,20 +712,20 @@ static void printinfoln(const char *str)

static int get_input(const char *prompt)
{
int r = KEY_RESIZE;
int r;

if (prompt)
printprompt(prompt);
cleartimeout();
#ifdef KEY_RESIZE
while (r == KEY_RESIZE) {
do {
r = getch();
if (r == KEY_RESIZE && prompt) {
clearoldprompt();
xlines = LINES;
printprompt(prompt);
}
};
} while (r == KEY_RESIZE);
#else
r = getch();
#endif


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