commit baca8bb19efa32a7ca1c439bb29eca36eae18212
parent 1c707d4f99cc919070104de09efe1e5a6302b6ce
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sat, 13 Apr 2019 11:43:02 +0200
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.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/text.c b/src/text.c
@@ -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;
}