Explorar o código

Always set register in map-based ODL

Junegunn Choi %!s(int64=9) %!d(string=hai) anos
pai
achega
cb5bed0e35
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)