forked from VimPlug/emmet-vim
ignore to use abs().
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
"=============================================================================
|
"=============================================================================
|
||||||
" zencoding.vim
|
" zencoding.vim
|
||||||
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
|
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
|
||||||
" Last Change: 05-Nov-2010.
|
" Last Change: 10-Nov-2010.
|
||||||
|
|
||||||
let s:save_cpo = &cpo
|
let s:save_cpo = &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
@@ -940,7 +940,7 @@ endfunction
|
|||||||
|
|
||||||
function! zencoding#balanceTag(flag) range
|
function! zencoding#balanceTag(flag) range
|
||||||
let vblock = s:get_visualblock()
|
let vblock = s:get_visualblock()
|
||||||
if abs(a:flag) == 2
|
if a:flag == -2 || a:flag == 2
|
||||||
let curpos = [0, line("'<"), col("'<"), 0]
|
let curpos = [0, line("'<"), col("'<"), 0]
|
||||||
else
|
else
|
||||||
let curpos = getpos('.')
|
let curpos = getpos('.')
|
||||||
@@ -1011,7 +1011,7 @@ function! zencoding#balanceTag(flag) range
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endwhile
|
endwhile
|
||||||
if abs(a:flag) == 2
|
if a:flag == -2 || a:flag == 2
|
||||||
silent! exe "normal! gv"
|
silent! exe "normal! gv"
|
||||||
else
|
else
|
||||||
call setpos('.', curpos)
|
call setpos('.', curpos)
|
||||||
|
|||||||
Reference in New Issue
Block a user