Commit a40094c9 authored by hjk's avatar hjk
Browse files

fakevim: fix indentation of first line after >iB and >ib
parent 99adbf15
......@@ -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())
const int p1 = tc1.position() + inner - sleft.size();
int p1 = tc1.position() + inner - sleft.size();
if (inner && m_tc.document()->characterAt(p1) == ParagraphSeparator)
const int p2 = tc2.position() - inner - sright.size();
setMark('>', p1);
m_anchor = p2;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment