Skip to content

Commit 318eec7

Browse files
committed
Consider g:jsonpath_delimeter in path searching
1 parent 136c784 commit 318eec7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

autoload/jsonpath.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function! jsonpath#scan_buffer(search_for, ...) "{{{
4141
" Parse arguments
4242
let search_for = a:search_for
4343
if type(search_for) == v:t_string
44-
let search_for = split(search_for, '\.', 1)
44+
let search_for = split(search_for, escape(g:jsonpath_delimeter, '.\'), 1)
4545
endif
4646
let is_searching = !empty(search_for)
4747

0 commit comments

Comments
 (0)