build: include a workaround only for versions of ncurses that need it
The cursor-misplacement bug has been fixed in ncurses-6.2-20210220: https://lists.gnu.org/archive/html/bug-ncurses/2021-02/msg00010.html See also https://savannah.gnu.org/bugs/?59808.master
parent
b9328d0eac
commit
73067e0e16
|
@ -408,11 +408,13 @@ void draw_the_promptbar(void)
|
||||||
|
|
||||||
wattroff(bottomwin, interface_color_pair[PROMPT_BAR]);
|
wattroff(bottomwin, interface_color_pair[PROMPT_BAR]);
|
||||||
|
|
||||||
|
#if defined(NCURSES_VERSION_PATCH) && (NCURSES_VERSION_PATCH < 20210220)
|
||||||
/* Work around a cursor-misplacement bug -- https://sv.gnu.org/bugs/?59808. */
|
/* Work around a cursor-misplacement bug -- https://sv.gnu.org/bugs/?59808. */
|
||||||
if (ISSET(NO_HELP)) {
|
if (ISSET(NO_HELP)) {
|
||||||
wmove(bottomwin, 0, 0);
|
wmove(bottomwin, 0, 0);
|
||||||
wrefresh(bottomwin);
|
wrefresh(bottomwin);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Place the cursor at the right spot. */
|
/* Place the cursor at the right spot. */
|
||||||
wmove(bottomwin, 0, column - the_page);
|
wmove(bottomwin, 0, column - the_page);
|
||||||
|
|
Loading…
Reference in New Issue