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
Marco Bubke
flatpak-qt-creator
Commits
98a07579
Commit
98a07579
authored
Feb 16, 2010
by
Kai Koehne
Browse files
Compile fix on Mac OS X (gcc 4.0.1)
parent
dbc7cdee
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/fakevim/fakevimhandler.cpp
View file @
98a07579
...
@@ -2016,7 +2016,7 @@ EventResult FakeVimHandler::Private::handleInsertMode(int key, int,
...
@@ -2016,7 +2016,7 @@ EventResult FakeVimHandler::Private::handleInsertMode(int key, int,
if
(
col
<=
ind
.
logical
&&
col
&&
startsWithWhitespace
(
data
,
col
))
{
if
(
col
<=
ind
.
logical
&&
col
&&
startsWithWhitespace
(
data
,
col
))
{
const
int
ts
=
config
(
ConfigTabStop
).
toInt
();
const
int
ts
=
config
(
ConfigTabStop
).
toInt
();
const
int
newcol
=
col
-
1
-
(
col
-
1
)
%
ts
;
const
int
newcol
=
col
-
1
-
(
col
-
1
)
%
ts
;
setLineContents
(
line
,
tabExpand
(
newcol
)
+
data
.
midRef
(
col
));
setLineContents
(
line
,
tabExpand
(
newcol
)
.
append
(
data
.
midRef
(
col
))
)
;
m_lastInsertion
.
clear
();
// FIXME
m_lastInsertion
.
clear
();
// FIXME
}
else
{
}
else
{
m_tc
.
deletePreviousChar
();
m_tc
.
deletePreviousChar
();
...
...
Write
Preview
Markdown
is supported
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