{\s\+} is a valid empty option

This commit is contained in:
Junegunn Choi
2013-08-05 02:15:02 +09:00
parent 2a2625014b
commit 20124bc622

View File

@@ -345,7 +345,7 @@ function! s:parse_args(args)
endwhile
" Invalid option dictionary
if len(cand) > 2 && empty(option)
if len(substitute(cand, '\s', '', 'g')) > 2 && empty(option)
call s:exit("Invalid option: ". cand)
endif