فهرست منبع

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
   if v:count
     call feedkeys(v:count, 'n')
     call feedkeys(v:count, 'n')
   endif
   endif
+  call feedkeys('"'.v:register, 'n')
   if mode(1) == 'no'
   if mode(1) == 'no'
-    call feedkeys('"'.v:register, 'n')
     call feedkeys(v:operator)
     call feedkeys(v:operator)
   endif
   endif
   call feedkeys(a:prefix . substitute(a:map, '^<Plug>', "\<Plug>", '') . extra)
   call feedkeys(a:prefix . substitute(a:map, '^<Plug>', "\<Plug>", '') . extra)