mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
Fix the serious bug of pressing Y in vim normal mode (#42)
This commit is contained in:
parent
84d1648fe4
commit
1ae30b645e
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user