Skip to content

Commit

Permalink
Capture and "expand" escaped special characters
Browse files Browse the repository at this point in the history
The expansion results only in the escape character being removed
  • Loading branch information
djmoch committed Dec 16, 2016
1 parent 8efbd6e commit dc5d17a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/makejob.vim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"
" TITLE: VIM-MAKEJOB
" AUTHOR: Daniel Moch <[email protected]>
" VERSION: 1.1.1
" VERSION: 1.1.2-dev
"
if exists('g:loaded_makejob') || version < 800 || !has('job') ||
\ !has('channel') || !has('quickfix')
Expand Down Expand Up @@ -81,7 +81,7 @@ function! s:Expand(input)
let l:split_input = split(a:input)
let l:expanded_input = []
for l:token in l:split_input
if l:token =~ '^%\|^#\|^\$' && l:token != '$*' && expand(l:token) != ''
if l:token =~ '^\\\?%\|^\\\?#\|^\\\?\$' && l:token != '$*' && expand(l:token) != ''
let l:expanded_input += [expand(l:token)]
else
let l:expanded_input += [l:token]
Expand Down

0 comments on commit dc5d17a

Please sign in to comment.