Allow interactive mode with options

This commit is contained in:
Junegunn Choi
2013-08-19 02:25:38 +09:00
parent 999e1ff68e
commit 74003c0297
3 changed files with 7 additions and 3 deletions

View File

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