Преглед изворни кода

Always set register in map-based ODL

Junegunn Choi пре 9 година
родитељ
комит
cb5bed0e35
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      plug.vim

+ 1 - 1
plug.vim

@@ -496,8 +496,8 @@ function! s:lod_map(map, names, prefix)
   if v:count
     call feedkeys(v:count, 'n')
   endif
+  call feedkeys('"'.v:register, 'n')
   if mode(1) == 'no'
-    call feedkeys('"'.v:register, 'n')
     call feedkeys(v:operator)
   endif
   call feedkeys(a:prefix . substitute(a:map, '^<Plug>', "\<Plug>", '') . extra)