diff --git a/src/readline.c b/src/readline.c index b08bb5f5..fedad71f 100644 --- a/src/readline.c +++ b/src/readline.c @@ -777,7 +777,7 @@ byte Readline_ex_unicode(word x_pos,word y_pos,char * str,word * str_unicode,byt goto affichage; } - } while(input_key==0 + } while(input_key==0 && Key == 0 #if defined(USE_SDL2) && Key_Text[0] == '\0' #endif @@ -848,7 +848,7 @@ byte Readline_ex_unicode(word x_pos,word y_pos,char * str,word * str_unicode,byt } else #endif - switch (input_key) + switch (Key) { case KEY_DELETE : // Suppr. if (position