GNOME Bugzilla – Bug 589257
Undo level is not a single edit (eg paste)
Last modified: 2017-07-31 12:45:22 UTC
Please describe the problem: Single undo level is not a single edit. A paste of one chunk of formatted text is processed as many edits, hence when undo'ing the edit is reverted in small parts. Steps to reproduce: 1. Write some formatted text, with bullets. 2. Copy the text. 3. Append (paste) the text. 4. Press undo (or Ctrl-Z) Actual results: Only some of the last change is reverted (particularly with bullet-points - only text of a bullet-point is erased) Expected results: Whole last edit reverted (whole paste is erased) Does this happen every time? Affirmative Other information:
Confirming, giving low priority, though for a text editing app it is kind of a frustrating bug. Patches welcome.
I think priority should be high because this behavior greatly affects user experience.
I too find this behaviour frustrating. Here's some more information from the corresponding Gnote bug ... "The problem is that undo works on 'editor actions' rather than 'user actions'" "When you paste a multiline text, it results in multiple editor actions, something like one action to add new line and one to add it's text. If you have text with formatting, the it leads to even more actions, as every chunk with unique formatting leads to a separate editor action." "Fixing this requires detecting paste and grouping all actions into single group that would behave like a single undo/redo action." Reference: https://bugzilla.gnome.org/show_bug.cgi?id=747202
The Tomboy team has moved from GNOME Bugzilla to GitHub for bug reports and feature requests: https://github.com/tomboy-notes/tomboy/issues/ Closing this report as NOTGNOME as part of Bugzilla Housekeeping (bug 781054) to keep tasks in one place. Please feel free to transfer this task to GitHub if this task is still valid in a recent Tomboy version. We are sorry for the inconvenience.