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
a40094c9
Commit
a40094c9
authored
Aug 11, 2010
by
hjk
Browse files
fakevim: fix indentation of first line after >iB and >ib
http://bugreports.qt.nokia.com/browse/QTCREATORBUG-2015
parent
99adbf15
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/fakevim/fakevimhandler.cpp
View file @
a40094c9
...
...
@@ -4704,7 +4704,9 @@ void FakeVimHandler::Private::selectBlockTextObject(bool inner, char left, char
QTextCursor
tc1
=
doc
->
find
(
sleft
,
m_tc
,
QTextDocument
::
FindBackward
);
if
(
tc1
.
isNull
())
return
;
const
int
p1
=
tc1
.
position
()
+
inner
-
sleft
.
size
();
int
p1
=
tc1
.
position
()
+
inner
-
sleft
.
size
();
if
(
inner
&&
m_tc
.
document
()
->
characterAt
(
p1
)
==
ParagraphSeparator
)
++
p1
;
const
int
p2
=
tc2
.
position
()
-
inner
-
sright
.
size
();
setMark
(
'>'
,
p1
);
m_anchor
=
p2
;
...
...
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