diff options
-rw-r--r-- | desktop/textarea.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/desktop/textarea.c b/desktop/textarea.c index 8afe12711..a1ebe0ddc 100644 --- a/desktop/textarea.c +++ b/desktop/textarea.c @@ -1979,6 +1979,9 @@ bool textarea_set_text(struct textarea *ta, const char *text) ta->text.len = len; ta->text.utf8_len = utf8_length(ta->text.data); + ta->undo.next_detail = 0; + ta->undo.last_detail = 0; + textarea_normalise_text(ta, 0, len); if (ta->flags & TEXTAREA_MULTILINE) { |