diff options
author | hluk <hluk@email.cz> | 2013-04-08 20:06:17 +0200 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2013-04-19 14:40:30 +0200 |
commit | 2ed88c44fd3b05b9e24cc649ecf11bc82fd1f3a3 (patch) | |
tree | ae343d66c5a0f30c35c403cbbe81e19347c149f1 /src/plugins/fakevim/fakevimhandler.h | |
parent | 8b8a5db129bb5c30e2626c80228e8e2f5b1db1b9 (diff) | |
download | qt-creator-2ed88c44fd3b05b9e24cc649ecf11bc82fd1f3a3.tar.gz |
FakeVim: Don't overuse cursor setting and scrolling in editor
Set new text cursor and scroll in editor widget only if it's only
needed. Sometimes these action can have side-effects.
Set new cursor and scroll especially after no pending input and commands
are available to process for FakeVim.
Change-Id: I47df4d0328ac990e2e5c6981955ea7d1bd608c71
Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src/plugins/fakevim/fakevimhandler.h')
-rw-r--r-- | src/plugins/fakevim/fakevimhandler.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/fakevim/fakevimhandler.h b/src/plugins/fakevim/fakevimhandler.h index 6e742915d4..0ef854d489 100644 --- a/src/plugins/fakevim/fakevimhandler.h +++ b/src/plugins/fakevim/fakevimhandler.h @@ -125,6 +125,9 @@ public slots: // Set text cursor position. Keeps anchor if in visual mode. void setTextCursorPosition(int position); + QTextCursor textCursor() const; + void setTextCursor(const QTextCursor &cursor); + bool jumpToLocalMark(QChar mark, bool backTickMode); signals: |