fakevim: remove spurious executable attributes; also some style issues

This commit is contained in:
hjk
2010-01-05 18:43:02 +01:00
parent f08176cc49
commit b6cae42a62

9
src/plugins/fakevim/fakevimhandler.cpp Executable file → Normal file
View File

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