Ver Fonte

Fix #491 - Lazy-loading with omaps

Junegunn Choi há 9 anos atrás
pai
commit
44893a1901
1 ficheiros alterados com 7 adições e 0 exclusões
  1. 7 0
      plug.vim

+ 7 - 0
plug.vim

@@ -493,6 +493,13 @@ function! s:lod_map(map, names, prefix)
     endif
     let extra .= nr2char(c)
   endwhile
+  if v:count
+    call feedkeys(v:count, 'n')
+  endif
+  if mode(1) == 'no'
+    call feedkeys('"'.v:register, 'n')
+    call feedkeys(v:operator)
+  endif
   call feedkeys(a:prefix . substitute(a:map, '^<Plug>', "\<Plug>", '') . extra)
 endfunction