Fix #40: Spurious undo in live interactive mode

Problem identified and patch provided by @wilywampa
This commit is contained in:
Junegunn Choi
2014-10-03 11:25:51 +09:00
parent 21697776b4
commit 6bc221c285
3 changed files with 17 additions and 2 deletions

View File

@@ -640,7 +640,8 @@ function! s:interactive(range, modes, n, d, opts, rules, vis, live, bvis)
let output = s:process(a:range, mode, n, d, s:normalize_options(opts), regx, a:rules, a:bvis)
let &undolevels = &undolevels " Break undo block
call s:update_lines(output.todo)
let undo = 1
let undo = !empty(output.todo)
let undo = !empty(output.todo)
let rdrw = 1
endif
if rdrw