Commit 40fc14c1 authored by Lukas Holecek's avatar Lukas Holecek Committed by hjk
Browse files

FakeVim: Stop waiting for incomplete mapping after interval

Recent change (QTimer for waiting on input) broke this behavior.

If using ":inoremap jj <ESC>" pressing only "j" in input mode should
timeout and insert the letter.

Change-Id: Ic5a1961143e1847ef02d5063c5da9eeb63714893
Reviewed-by: default avatarhjk <>
parent e27c7eb5
......@@ -2868,7 +2868,7 @@ void FakeVimHandler::Private::waitForMapping()
EventResult FakeVimHandler::Private::stopWaitForMapping(bool hasInput)
if (m_inputTimer.isActive()) {
if (!hasInput || m_inputTimer.isActive()) {
if (!hasInput && !expandCompleteMapping()) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment