--- a/src/text.c +++ b/src/text.c @@ -345,6 +345,7 @@ void do_indent(void) set_modified(); refresh_needed = TRUE; + shift_held = TRUE; } /* If the given text starts with a tab's worth of whitespace, return the @@ -441,6 +442,7 @@ void do_unindent(void) set_modified(); refresh_needed = TRUE; + shift_held = TRUE; } /* Perform an undo or redo for an indent or unindent action. */ @@ -552,6 +554,7 @@ void do_comment(void) set_modified(); refresh_needed = TRUE; + shift_held = TRUE; } /* Test whether the given line can be uncommented, or add or remove a comment,