Commit b6a99c4e authored by hjk's avatar hjk
Browse files

fakevim: re-enable :<line> which was broken after some recent merge

parent 8a0ddf1b
...@@ -2108,12 +2108,15 @@ EventResult FakeVimHandler::Private::handleMiniBufferModes(int key, int unmodifi ...@@ -2108,12 +2108,15 @@ EventResult FakeVimHandler::Private::handleMiniBufferModes(int key, int unmodifi
if (!m_commandBuffer.isEmpty()) { if (!m_commandBuffer.isEmpty()) {
m_commandHistory.takeLast(); m_commandHistory.takeLast();
m_commandHistory.append(m_commandBuffer); m_commandHistory.append(m_commandBuffer);
EDITOR(setTextCursor(m_tc)); // FIXME: This was inserted to prevent crashes when the
// editor 'vanishes' but broke things like :<line>.
// How can the crash be reproduced?
// when EDITOR(setTextCursor(m_tc));
handleExCommand(m_commandBuffer); handleExCommand(m_commandBuffer);
if (m_textedit || m_plaintextedit) { //if (m_textedit || m_plaintextedit) {
m_tc = EDITOR(textCursor()); // m_tc = EDITOR(textCursor());
leaveVisualMode(); leaveVisualMode();
} //}
} }
} else if (unmodified == Key_Return && isSearchMode()) { } else if (unmodified == Key_Return && isSearchMode()) {
if (!m_commandBuffer.isEmpty()) { if (!m_commandBuffer.isEmpty()) {
......
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