diff options
Diffstat (limited to 'Tools/idle/FormatParagraph.py')
-rw-r--r-- | Tools/idle/FormatParagraph.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Tools/idle/FormatParagraph.py b/Tools/idle/FormatParagraph.py index f8827e7..e17f54c 100644 --- a/Tools/idle/FormatParagraph.py +++ b/Tools/idle/FormatParagraph.py @@ -37,8 +37,10 @@ class FormatParagraph: text.tag_remove("sel", "1.0", "end") if newdata != data: text.mark_set("insert", first) + text.undo_block_start() text.delete(first, last) text.insert(first, newdata) + text.undo_block_stop() else: text.mark_set("insert", last) text.see("insert") |