softwrap: when typing M-/, ensure the last line is fully visible

This commit is contained in:
Benno Schulenberg 2017-01-09 15:21:15 +01:00
parent 5ca765f107
commit 58c3dd6cd0

View File

@ -44,6 +44,7 @@ void do_last_line(void)
/* Set the last line of the screen as the target for the cursor. */
openfile->current_y = editwinrows - 1;
ensure_line_is_visible();
refresh_needed = TRUE;
focusing = FALSE;