From 2ed88c44fd3b05b9e24cc649ecf11bc82fd1f3a3 Mon Sep 17 00:00:00 2001 From: hluk Date: Mon, 8 Apr 2013 20:06:17 +0200 Subject: 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 --- src/plugins/fakevim/fakevimhandler.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/plugins/fakevim/fakevimhandler.h') 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: -- cgit v1.2.1