Commit 336cb970 authored by hjk's avatar hjk
Browse files

fakevim: cosmetics

parent 8cb003a1
...@@ -1487,7 +1487,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified, ...@@ -1487,7 +1487,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
m_submode = ChangeSubMode; m_submode = ChangeSubMode;
} else if ((key == 'c' || key == 'C' || key == 's' || key == 'R') } else if ((key == 'c' || key == 'C' || key == 's' || key == 'R')
&& (isVisualCharMode() || isVisualLineMode())) { && (isVisualCharMode() || isVisualLineMode())) {
if((key == 'c'|| key == 's') && isVisualCharMode()) { if ((key == 'c'|| key == 's') && isVisualCharMode()) {
leaveVisualMode(); leaveVisualMode();
m_rangemode = RangeCharMode; m_rangemode = RangeCharMode;
} else { } else {
...@@ -1788,7 +1788,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified, ...@@ -1788,7 +1788,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
m_mvcount.clear(); m_mvcount.clear();
enterInsertMode(); enterInsertMode();
} else if (key == 'S') { } else if (key == 'S') {
if(!isVisualMode()) { if (!isVisualMode()) {
const int line = cursorLineInDocument() + 1; const int line = cursorLineInDocument() + 1;
setAnchor(firstPositionInLine(line)); setAnchor(firstPositionInLine(line));
setPosition(lastPositionInLine(line + count() - 1)); setPosition(lastPositionInLine(line + count() - 1));
......
Markdown is supported
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