After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 589257 - Undo level is not a single edit (eg paste)
Undo level is not a single edit (eg paste)
Status: RESOLVED NOTGNOME
Product: tomboy
Classification: Applications
Component: General
0.15.x
Other All
: Low normal
: ---
Assigned To: Tomboy Maintainers
Tomboy Maintainers
gnome[moved-to-github]
Depends on:
Blocks:
 
 
Reported: 2009-07-21 14:50 UTC by Iivari Mokelainen
Modified: 2017-07-31 12:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Iivari Mokelainen 2009-07-21 14:50:31 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:
Comment 1 Sandy Armstrong 2009-07-21 14:54:12 UTC
Confirming, giving low priority, though for a text editing app it is kind of a frustrating bug.  Patches welcome.
Comment 2 Silvio Sisto 2011-10-06 19:29:29 UTC
I think priority should be high because this behavior greatly affects user experience.
Comment 3 Tony R. 2015-04-19 13:44:46 UTC
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
Comment 4 André Klapper 2017-07-31 12:45:22 UTC
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.