mirror of
https://github.com/junegunn/vim-easy-align.git
synced 2025-11-14 04:43:48 -05:00
Allow interactive mode with options
This commit is contained in:
@@ -544,7 +544,9 @@ function! easy_align#align(bang, expr) range
|
||||
let [mode, n, ch] = s:interactive(copy(modes))
|
||||
else
|
||||
let [n, ch, option, regexp] = s:parse_args(a:expr)
|
||||
if empty(ch)
|
||||
if empty(n) && empty(ch)
|
||||
let [mode, n, ch] = s:interactive(copy(modes))
|
||||
elseif empty(ch)
|
||||
" Try swapping n and ch
|
||||
let [n, ch] = ['', n]
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user