fix #287. set nogdefault

This commit is contained in:
Yasuhiro Matsumoto
2015-08-17 20:22:39 +09:00
parent 57a5263d1d
commit 6d572e21e4

View File

@@ -682,6 +682,9 @@ function! emmet#expandAbbr(mode, abbr) range abort
endif
let pos = emmet#util#getcurpos()
let use_selection = emmet#getResource(type, 'use_selection', 0)
try
let l:gdefault = &gdefault
let &gdefault = 0
if use_selection && getline('.')[col('.')-1:] =~# '^\$select'
let pos[2] += 1
silent! s/\$select\$//
@@ -696,6 +699,9 @@ function! emmet#expandAbbr(mode, abbr) range abort
return "\<right>"
endif
endif
finally
let &gdefault = l:gdefault
endtry
let &selection = oldselection
endif
return ''