tweaks: exclude some hidden-interface code from the tiny version
Also, reshuffle one call and drop another: the cursor has been placed fifteen lines earlier (either directly or in edit_refresh()). (Important test case: toggling softwrap.)master
parent
f147131e7c
commit
966da68228
|
@ -2553,6 +2553,7 @@ int main(int argc, char **argv)
|
||||||
else
|
else
|
||||||
place_the_cursor();
|
place_the_cursor();
|
||||||
|
|
||||||
|
#ifndef NANO_TINY
|
||||||
/* In barless mode, either redraw a relevant status message,
|
/* In barless mode, either redraw a relevant status message,
|
||||||
* or overwrite a minor, redundant one. */
|
* or overwrite a minor, redundant one. */
|
||||||
if (ISSET(ZERO) && lastmessage > HUSH) {
|
if (ISSET(ZERO) && lastmessage > HUSH) {
|
||||||
|
@ -2562,11 +2563,10 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
redrawwin(bottomwin);
|
redrawwin(bottomwin);
|
||||||
wnoutrefresh(bottomwin);
|
wnoutrefresh(bottomwin);
|
||||||
|
wnoutrefresh(edit);
|
||||||
} else if (ISSET(ZERO) && lastmessage > VACUUM)
|
} else if (ISSET(ZERO) && lastmessage > VACUUM)
|
||||||
wredrawln(edit, editwinrows - 1, 1);
|
wredrawln(edit, editwinrows - 1, 1);
|
||||||
|
#endif
|
||||||
place_the_cursor();
|
|
||||||
wnoutrefresh(edit);
|
|
||||||
|
|
||||||
errno = 0;
|
errno = 0;
|
||||||
focusing = TRUE;
|
focusing = TRUE;
|
||||||
|
|
Loading…
Reference in New Issue