Bug 131819 - Input line fails to preserve undo/redo context of working set during history browsing
Summary: Input line fails to preserve undo/redo context of working set during history ...
Status: CONFIRMED
Alias: None
Product: konversation
Classification: Applications
Component: inputline (show other bugs)
Version: 1.5-rc1
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konversation Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-04 00:55 UTC by Eike Hein
Modified: 2013-04-16 22:22 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eike Hein 2006-08-04 00:55:00 UTC
Version:           0.19+ (using KDE KDE 3.5.4)

The input line widget presently fails to remember the undo/redo context of the line last being actively worked on when browsing the history.

Steps to reproduce:
1. Type "blubb", hit Return to send.
2. Type "foo bar".
3. Delete " bar" from the input.
4. Hit Arrow Up to browse the history. "blubb" will appear.
5. Hit Arrow Down. "foo" will re-appear.
6. Hit Ctrl-Z or whatever your "Undo" shortcut is. See " bar" not reappear.

The correct behavior would be to remember the undo/redo context for the "foo..." line until it is actively being committed to the history either by (a) sending it or (b) Arrow Down (the silent commit-to-history) or until comitting an unrelated line (derived from a history entry) via methods (a) or (b).

Outlining the current situation in the code: IRCInput::getHistory() ends up calling setText() on the KTextEdit-derived input widget, and does nothing to attempt to preserve the undo/redo context of the working set when returning to it.