From bf5df119cce145b6009e9a08cb4040e4aded2638 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 4 Oct 2010 14:46:57 +0200 Subject: vim_mode: Fix "xdd and "xyy not resetting the register. --- vim-mode/vim_mode.pl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vim-mode') diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index 588c1e1..dba18dd 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -1624,6 +1624,10 @@ sub handle_command_cmd { if ($char eq 'y') { _input_pos($pos); } + if ($register ne '"') { + print 'Changing register to "' if DEBUG; + $register = '"'; + } } $numeric_prefix = undef; $operator = undef; -- cgit v1.2.3