Skip to content

Commit

Permalink
Fix auto_prefix does not recognize '\'
Browse files Browse the repository at this point in the history
  • Loading branch information
mityu committed Sep 19, 2017
1 parent ffdd160 commit 54c827e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/partedit.vim
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function! partedit#start(startline, endline, ...)
if line ==# ''
continue
endif
let pat = substitute(line, '.', '[\0]', 'g')
let pat = escape(substitute(line, '.', '[\0]', 'g'),'\')
let prefix = matchstr(prefix, '^\%[' . pat . ']')
if prefix ==# ''
break
Expand Down

0 comments on commit 54c827e

Please sign in to comment.