Commit b6cae42a authored by hjk's avatar hjk
Browse files

fakevim: remove spurious executable attributes; also some style issues

parent f08176cc
......@@ -1225,9 +1225,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
m_movetype = MoveInclusive;
setTargetColumn();
if (m_submode == NoSubMode)
{
m_targetColumn = -1;
}
finishMovement("$");
} else if (key == ',') {
// FIXME: use some other mechanism
......@@ -1835,13 +1833,12 @@ EventResult FakeVimHandler::Private::handleInsertMode(int key, int,
} else if (key >= control('a') && key <= control('z')) {
// ignore these
} else if (!text.isEmpty()) {
if (m_beginEditBlock)
{
if (m_beginEditBlock) {
beginEditBlock();
m_beginEditBlock = false;
}
else
} else {
joinPreviousEditBlock();
}
m_justAutoIndented = false;
m_lastInsertion.append(text);
if (m_submode == ReplaceSubMode) {
......
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