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
parent
1c707d4f99
commit
baca8bb19e
|
@ -167,6 +167,7 @@ void do_indent(void)
|
||||||
free(indentation);
|
free(indentation);
|
||||||
|
|
||||||
set_modified();
|
set_modified();
|
||||||
|
ensure_firstcolumn_is_aligned();
|
||||||
refresh_needed = TRUE;
|
refresh_needed = TRUE;
|
||||||
shift_held = TRUE;
|
shift_held = TRUE;
|
||||||
}
|
}
|
||||||
|
@ -428,6 +429,7 @@ void do_comment(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
set_modified();
|
set_modified();
|
||||||
|
ensure_firstcolumn_is_aligned();
|
||||||
refresh_needed = TRUE;
|
refresh_needed = TRUE;
|
||||||
shift_held = TRUE;
|
shift_held = TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue