Browse Source

Fix <Plug>-based ODL on visual range spanning multiple lines

Junegunn Choi 11 năm trước cách đây
mục cha
commit
90c07f269c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      plug.vim

+ 1 - 1
plug.vim

@@ -144,7 +144,7 @@ function! plug#end()
             for [mode, map_prefix, key_prefix] in
                   \ [['i', "<C-O>", ''], ['n', '', ''], ['v', '', 'gv'], ['o', '', '']]
               execute printf(
-              \ "%snoremap <silent> %s %s:call <SID>lod_map(%s, %s, '%s')<CR>",
+              \ "%snoremap <silent> %s %s:<C-U>call <SID>lod_map(%s, %s, '%s')<CR>",
               \ mode, cmd, map_prefix, string(cmd), string(plug), key_prefix)
             endfor
           endif