Commit f39381fc authored by hjk's avatar hjk
Browse files

fakevim: better gJ

parent 421449ad
......@@ -1415,11 +1415,15 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
moveToEndOfLine();
setAnchor();
moveRight();
while (characterAtCursor() == ' ')
moveRight();
removeSelectedText();
if (!m_gflag)
if (m_gflag) {
removeSelectedText();
} else {
while (characterAtCursor() == ' '
|| characterAtCursor() == '\t')
moveRight();
removeSelectedText();
m_tc.insertText(" ");
}
}
if (!m_gflag)
moveLeft();
......
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