mirror of git://git.sv.gnu.org/nano.git
per OBATA Akio's patch with a few tweaks by me, add wnoutrefresh() calls
after reset_(statusbar_)?cursor() calls, to ensure that the cursor is placed properly when using NetBSD curses git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4185 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
6084c733f1
commit
4670f55efc
|
@ -31,6 +31,10 @@ CVS code -
|
|||
- Update copyright notices, as Jordi Mallach's copyrights have
|
||||
now been assigned to the Free Software Foundation. Changes to
|
||||
doc/man/rnano.1 and doc/man/fr/rnano.1. (DLR)
|
||||
- Add wnoutrefresh() calls after reset_(statusbar_)?cursor()
|
||||
calls, to ensure that the cursor is placed properly when using
|
||||
NetBSD curses. Changes to main(), get_prompt_string(), and
|
||||
do_replace_highlight(). (OBATA Akio, minor tweaks by DLR)
|
||||
- chars.c:
|
||||
nstrncasecmp(), mbstrncasecmp()
|
||||
- For efficiency, return zero immediately if s1 and s2 point to
|
||||
|
|
|
@ -2265,6 +2265,7 @@ int main(int argc, char **argv)
|
|||
|
||||
/* Make sure the cursor is in the edit window. */
|
||||
reset_cursor();
|
||||
wnoutrefresh(edit);
|
||||
|
||||
#ifndef NANO_TINY
|
||||
if (!jump_buf_main) {
|
||||
|
|
|
@ -1116,6 +1116,7 @@ int get_prompt_string(bool allow_tabs,
|
|||
#endif
|
||||
|
||||
reset_statusbar_cursor();
|
||||
wnoutrefresh(bottomwin);
|
||||
}
|
||||
|
||||
#ifndef NANO_TINY
|
||||
|
|
|
@ -3260,6 +3260,7 @@ void do_replace_highlight(bool highlight, const char *word)
|
|||
y--;
|
||||
|
||||
reset_cursor();
|
||||
wnoutrefresh(edit);
|
||||
|
||||
if (highlight)
|
||||
wattron(edit, reverse_attr);
|
||||
|
|
Loading…
Reference in New Issue