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
78a206a3
Commit
78a206a3
authored
Feb 12, 2010
by
hjk
Browse files
fakevim: fix indentation after <Return><Tab><Backspace>
parent
a029a6c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/fakevim/fakevimhandler.cpp
View file @
78a206a3
...
...
@@ -2001,6 +2001,7 @@ EventResult FakeVimHandler::Private::handleInsertMode(int key, int,
moveUp
(
count
()
*
(
linesOnScreen
()
-
2
));
m_lastInsertion
.
clear
();
}
else
if
(
key
==
Key_Tab
&&
hasConfig
(
ConfigExpandTab
))
{
m_justAutoIndented
=
0
;
int
ts
=
config
(
ConfigTabStop
).
toInt
();
int
col
=
cursorColumnInDocument
();
QString
str
=
QString
(
ts
-
col
%
ts
,
' '
);
...
...
@@ -2016,7 +2017,7 @@ EventResult FakeVimHandler::Private::handleInsertMode(int key, int,
}
else
{
joinPreviousEditBlock
();
}
m_justAutoIndented
=
false
;
m_justAutoIndented
=
0
;
m_lastInsertion
.
append
(
text
);
if
(
m_submode
==
ReplaceSubMode
)
{
if
(
atEndOfLine
())
...
...
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