Browse Source

Fix the serious bug of pressing Y in vim normal mode (#42)

Xianzhong Wang 8 years ago
parent
commit
1ae30b645e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/utils/vvim.cpp

+ 1 - 0
src/utils/vvim.cpp

@@ -1639,6 +1639,7 @@ bool VVim::handleKeyPressEvent(int key, int modifiers, int *p_autoIndentPos)
             tryGetRepeatToken(m_keys, m_tokens);
             if (!hasActionToken() && m_mode == VimMode::Normal) {
                 // Y, same as yy.
+                addActionToken(Action::Copy);
                 addRangeToken(Range::Line);
                 processCommand(m_tokens);
             }