Procházet zdrojové kódy

Always set register in map-based ODL

Junegunn Choi před 9 roky
rodič
revize
cb5bed0e35
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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)