Skip to content

Commit 5693150

Browse files
committed
Fix failure to handle multiple escaped spaces
Searching for: foo\ bar Would work, but: foo\ bar\ baz Would not, due to a missing "g" flag to `substitute()`. Closes: #49
1 parent fefd3d4 commit 5693150

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/ferret/private.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function! s:parse(args) abort
126126
for l:arg in l:args
127127
" Because we split on unescaped spaces, we know any escaped spaces remaining
128128
" inside arguments really are supposed to be just spaces.
129-
let l:arg=substitute(l:arg, '\\ ', ' ', '')
129+
let l:arg=substitute(l:arg, '\\ ', ' ', 'g')
130130

131131
if ferret#private#option(l:arg)
132132
" Options get passed through as-is.

0 commit comments

Comments
 (0)