blob: 6081fa8bb9d7a66daeca1fbf4ab45bb677d587bf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
function! option#item#Escape(item, ...) abort
if a:0 > 1
echoerr 'Too many arguments'
endif
let item = a:item
let wild = a:0 ? a:1 : 0
if wild
let item = substitute(item, '\\,', ',', 'g')
endif
return escape(item, ',')
endfunction
|