Skip to content

Commit c327125

Browse files
committed
Fix escaping for :Dispatch echo \% on win32
1 parent 5b58b6d commit c327125

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

autoload/dispatch.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ function! s:expand(expr, dispatch_opts) abort
7777
endif
7878
call extend(l:, a:dispatch_opts)
7979
sandbox let v = expand(substitute(a:expr, ':S$', '', ''))
80+
if has('win32') && a:expr =~# '^\\[%#]' && v =~# '^\\[%#]'
81+
let v = v[1:-1]
82+
endif
8083
if a:expr =~# ':S$'
8184
let v = shellescape(v)
8285
endif

0 commit comments

Comments
 (0)