Fix the line editor/spectrum analyser interaction

The updater assumed the terminal cursor was invisible.
This commit is contained in:
Přemysl Eric Janouch 2021-10-21 09:13:07 +02:00
parent 267598643a
commit 53fbb3dec1
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 6 additions and 0 deletions

View File

@ -3789,9 +3789,15 @@ spectrum_redraw (void)
// let's hack around it in this case
if (g.spectrum_row != -1)
{
// Don't mess up the line editor caret, when it's shown
int last_x, last_y;
getyx (stdscr, last_y, last_x);
attrset (APP_ATTR (TAB_BAR));
mvaddstr (g.spectrum_row, g.spectrum_column, g.spectrum.spectrum);
attrset (0);
move (last_y, last_x);
refresh ();
}
else