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

@@ -161,4 +161,17 @@ Expect:
d, e, f
Given c (#40 Ignored delimiters in LiveEasyAlign causes spurious undo):
printf("foo = %f\n", foo);
printf("foobar = %f\n", foobar);
Do:
gUiw
:%LiveEasyAlign\<enter>
=\<bs>==
Expect c:
PRINTF("foo = %f\n", foo);
printf("foobar = %f\n", foobar);
Include: include/teardown.vader

View File

@@ -1,3 +1,4 @@
Execute:
Given:
Execute (Restoring test environment):
Restore