This is the finalization of the change started with 3c0ca8c188.
Fakevim undo was broken due to behavioural changes in QTextDocument
in Qt 4.6. Now that QTextDocument has gotten new accessors to the
needed (and previously available) data we can use it.
Fixed yanking with e (ye) Fixed ce followed by .
Initial implementation for mark updates (marks should stay on the same line after adding/deleting lines)
Fixed yank with Y
Added fakevim tests for yanking using marks and yanking using Y.
Fixed yanking with marks when a mark was set to a blank line.
Combined yy and Y to use the same yanking method.
Merge-request: 1314
Reviewed-by: hjk <qtc-committer@nokia.com>
This covers 'Y' in novisual, char and line mode and 'y' in char mode.
Visual block mode is still missing. It also fixes an off-by-one error
when displaying selection in visual char mode.
Reviewed-by: hjk
Merge-request: 1149
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Text was selected after horizontal cursor moving / insert / enter followed by
vertical cursor movement. Also, target column was sometimes wrong.
Reviewed-By: hjk
Merge-request: 1050
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
The selection was not visible when moving cursor up.
Reviewed-by: hjk
Merge-request: 1016
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
core Find dialog and the "old" minibuffer based search.
A hot fix for the recent regression that 'n' and 'N' do not work and
the positioning of the cursor after the search is wrong.
Creator already has a find box that works fairly well, so there
is no need for a mini-buffer mode for searching. This change makes
FakeVim activate the standard find box when the user hits '/' or '?'.
Note: right now both '/' and '?' do forward searching by default
because the Creator find box lacks a "find backwards by default" mode.
This can be added later to the find box if considered useful.