mirror of
https://github.com/junegunn/vim-easy-align.git
synced 2025-11-15 13:23:48 -05:00
Fix <CTRL-P> to toggle liveness when delimiter is not entered (#44)
This commit is contained in:
@@ -714,9 +714,13 @@ function! s:interactive(range, modes, n, d, opts, rules, vis, bvis)
|
||||
elseif ch == "\<C-G>"
|
||||
call s:shift_opts(opts, 'ig', vals['ignore_groups'])
|
||||
elseif ch == "\<C-P>"
|
||||
if !empty(d) && s:live
|
||||
let ch = d
|
||||
break
|
||||
if s:live
|
||||
if !empty(d)
|
||||
let ch = d
|
||||
break
|
||||
else
|
||||
let s:live = 0
|
||||
endif
|
||||
else
|
||||
let s:live = 1
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user