nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 73067e0e164dccd0279d0d413c53c5053f3c8e9b
parent b9328d0eac79d60796fc98626610d835140214ce
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun, 21 Feb 2021 11:55:29 +0100

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.

Diffstat:
Msrc/prompt.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/prompt.c b/src/prompt.c @@ -408,11 +408,13 @@ void draw_the_promptbar(void) 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. */ if (ISSET(NO_HELP)) { wmove(bottomwin, 0, 0); wrefresh(bottomwin); } +#endif /* Place the cursor at the right spot. */ wmove(bottomwin, 0, column - the_page);