Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
f5258cbc
Commit
f5258cbc
authored
Sep 27, 2010
by
hjk
Browse files
fakevim: disable Shift-Up style keyboard selection in insert mode.
parent
65c5a84e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/fakevim/fakevimhandler.cpp
View file @
f5258cbc
...
...
@@ -2779,7 +2779,8 @@ EventResult FakeVimHandler::Private::handleInsertMode(const Input &input)
}
else
if
(
!
input
.
text
().
isEmpty
())
{
insertInInsertMode
(
input
.
text
());
}
else
{
return
EventUnhandled
;
// We don't want fancy stuff in insert mode.
return
EventHandled
;
}
updateMiniBuffer
();
return
EventHandled
;
...
...
@@ -3591,10 +3592,6 @@ void FakeVimHandler::Private::searchBalanced(bool forward, QChar needle, QChar o
--
level
;
if
(
level
==
0
)
{
const
int
oldLine
=
cursorLine
()
-
cursorLineOnScreen
();
QTextCursor
tc
=
cursor
();
tc
.
setPosition
(
pos
,
MoveAnchor
);
tc
.
clearSelection
();
setCursor
(
tc
);
// Making this unconditional feels better, but is not "vim like".
if
(
oldLine
!=
cursorLine
()
-
cursorLineOnScreen
())
scrollToLine
(
cursorLine
()
-
linesOnScreen
()
/
2
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment