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 340263 - incorrect undoing of overtyping
incorrect undoing of overtyping
Status: RESOLVED OBSOLETE
Product: bluefish
Classification: Other
Component: application
1.0.7
Other Linux
: Low minor
: ---
Assigned To: Bluefish Maintainer(s)
Bluefish Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2006-05-01 09:26 UTC by Joachim Noreiko
Modified: 2009-12-25 17:05 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12



Description Joachim Noreiko 2006-05-01 09:26:25 UTC
The undo command behaves incorrectly for text that has been overtyped.

Select some text in Bluefish.
Type something to replace it.

The original selected text is overwritten with the typed text.

Now do Undo.

Expected behaviour: typed text vanishes, original reappears.
Actual behaviour: both pieces of text vanish. This is incorrect, as it is a state the document was never in.

Possibly related to Bug #340262.
Comment 1 Dave Meikle 2006-12-08 22:30:43 UTC
If you hit undo twice the text comes back, as the undo has saved the "extra" state between the two operations - i.e. the blanking of the word.

This is could be considered a state the document was in but I agree this is not what I would have expected.

Comment 2 Daniel Leidert 2008-03-08 01:25:23 UTC
(In reply to comment #1)
> If you hit undo twice the text comes back, as the undo has saved the "extra"
> state between the two operations - i.e. the blanking of the word.

What is done here consists of 2 actions: delete text and add text. Both actions trigger an event that leads to a saved state in the undo stack. I'm closing this report.
Comment 3 Joachim Noreiko 2008-03-11 23:09:11 UTC
For the user, it's one action.
The user's point of view and the programmer's point of view are often different.
Please reopen, as this behaviour goes against what other applications do and that users expect.
Comment 4 Olivier Sessink 2008-03-12 07:31:33 UTC
I agree that if you select text and overtype (not using the overtype key, not using delete or backspace) it shoud be a single action. I'm not sure how to detect it within gtk (it sends two signals, so it will be hard to find out if the user pressed delete or immediately started writing new text). But I think the bug report is valid.
Comment 5 Joachim Noreiko 2008-04-01 18:16:33 UTC
Upping version number.

I can confirm that gedit behaves correctly, which is also built on gtk.
Comment 6 Olivier Sessink 2008-04-01 20:17:58 UTC
unfortunately gedit doesn't use the gtktextview component, but it uses a separate editor component..
Comment 7 Jim Hayward 2009-12-25 17:05:09 UTC
Bluefish 2.0.0-rc1 has been released. This is the first release in the
2.x series. Upgrading to the 2.x releases is recommended. Bugs in the old 1.x
branch are unlikely to be fixed. If you can reproduce this bug against the 2.x branch please reopen the bug.