indenting, commenting: ensure a partial line stays displayed properly

Do the same as in the previous commit: re-evaluate the start of the
viewport when lines that are located above this viewport may have
changed.  This is relevant when softwrap is on.
master
Benno Schulenberg 2019-04-13 11:43:02 +02:00
parent 1c707d4f99
commit baca8bb19e
1 changed files with 2 additions and 0 deletions

View File

@ -167,6 +167,7 @@ void do_indent(void)
free(indentation);
set_modified();
ensure_firstcolumn_is_aligned();
refresh_needed = TRUE;
shift_held = TRUE;
}
@ -428,6 +429,7 @@ void do_comment(void)
}
set_modified();
ensure_firstcolumn_is_aligned();
refresh_needed = TRUE;
shift_held = TRUE;
}