mirror of
https://github.com/junegunn/vim-easy-align.git
synced 2025-11-11 03:13:48 -05:00
fix non-interactive EasyAlign to take negative field #
This commit is contained in:
@@ -153,7 +153,7 @@ function! easy_align#align(just, ...) range
|
|||||||
endif
|
endif
|
||||||
endwhile
|
endwhile
|
||||||
elseif a:0 == 1
|
elseif a:0 == 1
|
||||||
let tokens = matchlist(a:1, '^\([1-9][0-9]*\|\*\)\?\(.\)$')
|
let tokens = matchlist(a:1, '^\(-\?[1-9][0-9]*\|-\|\*\)\?\(.\)$')
|
||||||
if empty(tokens)
|
if empty(tokens)
|
||||||
echo "Invalid arguments: ". a:1
|
echo "Invalid arguments: ". a:1
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user