Bug 133044 - Undo (CTRL-Z) creates some extra characters when undo a composed character
Summary: Undo (CTRL-Z) creates some extra characters when undo a composed character
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gtk2
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Matthias Clasen
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-09-21 04:49 UTC by Lawrence Lim
Modified: 2014-03-26 00:51 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-10-22 04:18:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Lawrence Lim 2004-09-21 04:49:26 UTC
Description of problem:
After removing a composed character which makes up 3 characters, to
undo the event, user will need to type CTRL-Z 3 times. In addition,
indivaidual charcters that made up the composed characters were
returned as well. Hence, instaed of returning one single character, 3
characters are returned.

Version-Release number of selected component (if applicable):
gtk2-2.4.9-8

How reproducible:
Always

Steps to Reproduce:
1. Use gedit application to open the UTF-8.txt supplied
2. Remove one korean character which can be found near the end of file
3. Ctrl-Z to undo action
  
Actual results:
Compose character toegther with the elements that made up the
character are returned.

Expected results:
One single compose character is returned

Additional info:

Comment 1 Leon Ho 2004-09-21 12:04:33 UTC
Here is the test case:
- wget
http://www.openi18n.org/subgroups/testsuites/1.3/interactive/text-editor-tests/UTF-8.txt
- open UTF-8.txt in gedit
- Go to end of hangul extended line
- delete part of the character.
- press ctrl-z

Comment 2 Owen Taylor 2004-09-21 14:55:26 UTC
I think there are multiple things going on here - without touching
the delete key at all I can get bizarre behavior with gedit.

Open up a new window, with a Korean input method, enter a syllable
and commit it. The first press of C-z deletes the character ... looks
good. But repeatedly typing C-z after that results in junk being
inserted into the buffer.

THis is probably some combination of GtkTextView bugs and
GtkSourceView bugs ... undo is implemented as a layer on *top* of
GtkTextView.

Comment 3 Leon Ho 2004-10-22 04:18:27 UTC
Fixed in rawhide


Note You need to log in before you can comment on or make changes to this bug.