summaryrefslogtreecommitdiff
path: root/src/plugins/fakevim/fakevimhandler.h
diff options
context:
space:
mode:
authorhluk <hluk@email.cz>2013-04-08 20:06:17 +0200
committerhjk <hjk121@nokiamail.com>2013-04-19 14:40:30 +0200
commit2ed88c44fd3b05b9e24cc649ecf11bc82fd1f3a3 (patch)
treeae343d66c5a0f30c35c403cbbe81e19347c149f1 /src/plugins/fakevim/fakevimhandler.h
parent8b8a5db129bb5c30e2626c80228e8e2f5b1db1b9 (diff)
downloadqt-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.h3
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: