Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
05d555ac
Commit
05d555ac
authored
Jul 10, 2009
by
hjk
Browse files
fakevim: fix problem with <Backspace> in insert mode on new line when
AutoIndent is on
parent
d7fb6ea5
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/fakevim/fakevimhandler.cpp
View file @
05d555ac
...
...
@@ -1585,6 +1585,7 @@ EventResult FakeVimHandler::Private::handleInsertMode(int key, int,
}
else
if
(
key
>=
control
(
'a'
)
&&
key
<=
control
(
'z'
))
{
// ignore these
}
else
if
(
!
text
.
isEmpty
())
{
m_justAutoIndented
=
false
;
m_lastInsertion
.
append
(
text
);
if
(
m_submode
==
ReplaceSubMode
)
{
if
(
atEndOfLine
())
...
...
tests/manual/fakevim/main.cpp
View file @
05d555ac
...
...
@@ -121,6 +121,7 @@ int main(int argc, char *argv[])
theFakeVimSetting
(
ConfigUseFakeVim
)
->
setValue
(
true
);
theFakeVimSetting
(
ConfigShiftWidth
)
->
setValue
(
8
);
theFakeVimSetting
(
ConfigTabStop
)
->
setValue
(
8
);
theFakeVimSetting
(
ConfigAutoIndent
)
->
setValue
(
true
);
handler
.
installEventFilter
();
handler
.
setupWidget
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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