Fix parse parenthesis

This commit is contained in:
Shougo Matsushita
2015-12-12 18:08:13 +09:00
parent 12ad06d37d
commit 43438178b0
2 changed files with 17 additions and 6 deletions

View File

@@ -107,7 +107,7 @@ function! neosnippet#handlers#_get_in_paren(str) abort "{{{
continue
endif
elseif c == ')'
if level == 1
if level == 1 && s != ''
return s
else
let level -= 1