ignore to use abs().

This commit is contained in:
mattn
2010-11-10 01:28:14 +09:00
parent 4cf35d61e0
commit fd46018e06

View File

@@ -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)