diff --git a/plugin/express.vim b/plugin/express.vim index 2df3250..3685e9e 100644 --- a/plugin/express.vim +++ b/plugin/express.vim @@ -33,7 +33,7 @@ function! s:subpress_base(input, type, vis) if len(args) == 2 let args = args + [''] endif - let [value, regtype] = s:get(a:type, a:0) + let [value, regtype] = s:get(a:type, a:vis) let lines = split(value, "\n") call s:set(join(map(lines, 'call("substitute", [v:val] + args)'), "\n"), regtype) endfunction