mirror of
https://https.git.savannah.gnu.org/git/nano.git
synced 2026-01-26 16:09:15 +00:00
moving: make cycling (M-%) independent from centering (^L)
The first strike of M-% should always try to center the cursor, also when the preceding keystroke was ^L.
This commit is contained in:
parent
61dee21466
commit
34db8682b3
@ -227,7 +227,9 @@ void do_cycle(void)
|
||||
/* Scroll the line with the cursor to the center of the screen. */
|
||||
void do_center(void)
|
||||
{
|
||||
do_cycle(); /* The main loop has set 'cycling_aim' to zero. */
|
||||
adjust_viewport(CENTERING);
|
||||
draw_all_subwindows();
|
||||
full_refresh();
|
||||
}
|
||||
#endif /* !NANO_TINY */
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user