Bug 1206079

Summary: 'Undo' in composer doesn't work right
Product: [Fedora] Fedora Reporter: Tim Waugh <twaugh>
Component: evolutionAssignee: Tomas Popela <tpopela>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: dwmw2, jmlich, lucilanga, mbarnes, mcrha, tpopela
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: evolution-3.16.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-22 05:26:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tim Waugh 2015-03-26 09:42:25 UTC
Description of problem:
'Undo' doesn't work right when composing a message.

Version-Release number of selected component (if applicable):
evolution-3.15.92-1.fc22.x86_64
webkitgtk3-2.4.8-5.fc22.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Compose new message.
2.In message body, type "abc" then enter, then "def" then enter. Message body looks like this:

abc
def|

(| is the cursor)

3.Press backspace twice. Message body looks like this:

abc
d|

4.Select Undo or press Ctrl-Z. Message body looks like this:

ae|bc
d

5.Select Undo or press Ctrl-Z. Message body looks like this:

aef|bc
d

Actual results:
aef|bc
d

Expected results:
abc
def|

Comment 1 Milan Crha 2015-04-07 06:27:52 UTC
Thanks for a bug report. I'd prefer to have it filled upstream, as this doesn't seem to be a Fedora specific bug report, but we can start here too.

Tomas, could you look on it, please?

Comment 2 Tomas Popela 2015-04-07 06:36:16 UTC
I tested it on top of the last commit in Evolution gnome-3-16 branch and I got the expected result.

Comment 3 Tim Waugh 2015-04-24 09:48:25 UTC
Still fails with evolution-3.16.1-1.fc22.x86_64.

Comment 4 Milan Crha 2015-04-27 08:29:40 UTC
Tomas, could you take care of this, please?

Comment 5 Milan Crha 2015-04-27 10:43:01 UTC
I can confirm this with evolution git master at commit 2ee6aa0 and gnome-3-16 branch at commit d9f965a. I begun with the steps in comment #0, even it doesn't show exact output at 2) and 3). Rewriting the steps:
- press: aaa<enter>bbb<enter><backspace><backspace><Ctrl+Z>

The result is:
  aab|a
  bb

That's in the Plain Text mode with a Normal paragraph style.

Comment 6 Tomas Popela 2015-05-11 13:06:51 UTC
*** Bug 1220385 has been marked as a duplicate of this bug. ***