Revert "Make user confirm regular expression on live interactive mode"

This reverts commit a76cfdb8ae.
This commit is contained in:
Junegunn Choi
2013-10-25 02:17:52 +09:00
parent a76cfdb8ae
commit 1a232ac19b
4 changed files with 13 additions and 13 deletions

View File

@@ -690,16 +690,16 @@ function! s:interactive(range, modes, n, d, opts, rules, vis, live)
silent! call remove(opts, 'm')
endif
elseif ch == "\<C-_>" || ch == "\<C-X>"
let pd = regx ? d : ''
if a:live && regx && !empty(d)
break
endif
let prompt = 'Regular expression: '
let ch = s:input(prompt, pd, a:vis)
let ch = s:input(prompt, '', a:vis)
if !empty(ch) && s:valid_regexp(ch)
let regx = 1
let d = ch
if !a:live || pd == d
break
endif
if !a:live | break | endif
else
let warn = 'Invalid regular expression: '.ch
endif