in check_statusblank(), avoid redundant updates when statusblank is 0
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3586 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
184955d0c1
commit
100bc30d63
|
@ -316,6 +316,8 @@ CVS code -
|
||||||
parse_verbatim_kbinput()
|
parse_verbatim_kbinput()
|
||||||
- Don't include the ability to enter a Unicode sequence via
|
- Don't include the ability to enter a Unicode sequence via
|
||||||
verbatim input mode if ENABLE_UTF8 isn't defined. (DLR)
|
verbatim input mode if ENABLE_UTF8 isn't defined. (DLR)
|
||||||
|
check_statusblank()
|
||||||
|
- Avoid redundant updates when statusblank is 0. (DLR)
|
||||||
display_string()
|
display_string()
|
||||||
- Properly display double-column characters if they're past the
|
- Properly display double-column characters if they're past the
|
||||||
first virtual page and their first column is covered by the
|
first virtual page and their first column is covered by the
|
||||||
|
|
13
src/winio.c
13
src/winio.c
|
@ -1737,14 +1737,15 @@ void blank_bottombars(void)
|
||||||
* position display is on. */
|
* position display is on. */
|
||||||
void check_statusblank(void)
|
void check_statusblank(void)
|
||||||
{
|
{
|
||||||
if (statusblank > 0)
|
if (statusblank > 0) {
|
||||||
statusblank--;
|
statusblank--;
|
||||||
|
|
||||||
if (statusblank == 0 && !ISSET(CONST_UPDATE)) {
|
if (statusblank == 0 && !ISSET(CONST_UPDATE)) {
|
||||||
blank_statusbar();
|
blank_statusbar();
|
||||||
wnoutrefresh(bottomwin);
|
wnoutrefresh(bottomwin);
|
||||||
reset_cursor();
|
reset_cursor();
|
||||||
wnoutrefresh(edit);
|
wnoutrefresh(edit);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue