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
Tobias Hunger
qt-creator
Commits
d3cea8a4
Commit
d3cea8a4
authored
Jul 06, 2010
by
hjk
Browse files
fakevim: fix insert of Tabs
parent
cbdd9202
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/fakevim/fakevimhandler.cpp
View file @
d3cea8a4
...
...
@@ -2650,7 +2650,7 @@ EventResult FakeVimHandler::Private::handleInsertMode(const Input &input)
}
else
if
(
input
.
isKey
(
Key_Tab
)
&&
hasConfig
(
ConfigExpandTab
))
{
m_justAutoIndented
=
0
;
const
int
ts
=
config
(
ConfigTabStop
).
toInt
();
const
int
col
=
phys
icalCursorColumnInDocument
();
const
int
col
=
log
icalCursorColumnInDocument
();
QString
str
=
QString
(
ts
-
col
%
ts
,
' '
);
m_lastInsertion
.
append
(
str
);
insertText
(
str
);
...
...
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