the find plugin places the cursor at the end of a found item, but vi at the start,
thus update cursor position when editor widget regains focus
Merge-request: 97
Reviewed-by: hjk <qtc-committer@nokia.com>
use creator's indenter for smartindent mode
- this works like automatic indent w/o fakevim
perhaps this fixes QTCREATORBUG-139
Merge-request: 98
Reviewed-by: hjk <qtc-committer@nokia.com>
in order for automatic indenting to work, isElectricCharacter has to match the language of the document
Merge-request: 98
Reviewed-by: hjk <qtc-committer@nokia.com>
- the indented region has been off by one line as lineForPosition returns 1-based line numbers but QTextDocument::findBlockByNumber expects base 0
- all lines (including first and last line) have to be indented
- if text is collapsed, then findBlockByNumber has to be used instead of findBlockByLineNumber for getting the block containing a line
Merge-request: 96
Reviewed-by: hjk <qtc-committer@nokia.com>
make sure that when deleting line-wise, a complete line is deleted,
even at the end of the document
Merge-request: 96
Reviewed-by: hjk <qtc-committer@nokia.com>
previously, the insertion point would have stayed just in front of the last character instead of in
front of the last but first character
Merge-request: 96
Reviewed-by: hjk <qtc-committer@nokia.com>
atomically undo command that entered insert mode together with undoing the insertion of new characters
Merge-request: 96
Reviewed-by: hjk <qtc-committer@nokia.com>
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>