mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-07 19:24:27 +08:00
Check foldclosed
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
"=============================================================================
|
"=============================================================================
|
||||||
" emmet.vim
|
" emmet.vim
|
||||||
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
|
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
|
||||||
" Last Change: 20-Aug-2013.
|
" Last Change: 22-Aug-2013.
|
||||||
|
|
||||||
let s:save_cpo = &cpo
|
let s:save_cpo = &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
@@ -614,7 +614,9 @@ function! emmet#expandAbbr(mode, abbr) range
|
|||||||
if search('\$cursor\$', 'e')
|
if search('\$cursor\$', 'e')
|
||||||
let oldselection = &selection
|
let oldselection = &selection
|
||||||
let &selection = 'inclusive'
|
let &selection = 'inclusive'
|
||||||
silent! foldopen
|
if foldclosed(line('.')) != -1
|
||||||
|
silent! foldopen
|
||||||
|
endif
|
||||||
silent! exe "normal! v7h\"_s"
|
silent! exe "normal! v7h\"_s"
|
||||||
let &selection = oldselection
|
let &selection = oldselection
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user