mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-27 15:10:53 +00:00
Fix autocompletion popup (#14958)
This commit is contained in:
parent
b4860e4eec
commit
879e4723bd
@ -370,6 +370,7 @@ R_API int r_cons_get_cur_line() {
|
||||
#if __UNIX__
|
||||
char buf[8];
|
||||
struct termios save,raw;
|
||||
fflush(stdout); // flush the Arrow keys escape keys which was messing up the output
|
||||
(void) tcgetattr (0, &save);
|
||||
cfmakeraw (&raw);
|
||||
(void) tcsetattr (0, TCSANOW, &raw);
|
||||
|
@ -542,7 +542,7 @@ static void selection_widget_draw() {
|
||||
pos_y = r_cons_get_cur_line ();
|
||||
if (pos_y + sel_widget->h > cons->rows) {
|
||||
printf ("%s\n", r_str_pad('\n', sel_widget->h));
|
||||
pos_y = cons->rows - sel_widget->h;
|
||||
pos_y = cons->rows - sel_widget->h - 1;
|
||||
}
|
||||
}
|
||||
sel_widget->w = R_MIN (sel_widget->w, R_SELWIDGET_MAXW);
|
||||
|
Loading…
Reference in New Issue
Block a user