Kaynağa Gözat

Fix KEY_RESIZE loop

master
Arun Prakash Jana 5 yıl önce
ebeveyn
işleme
5734f49126
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: A75979F35C080412
1 değiştirilmiş dosya ile 7 ekleme ve 9 silme
  1. +7
    -9
      src/nnn.c

+ 7
- 9
src/nnn.c Dosyayı Görüntüle

@@ -588,22 +588,20 @@ static void printprompt(const char *str)

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

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


Yükleniyor…
İptal
Kaydet