Hi,
2014/9/25 Thu 23:13:52 UTC+9 Ken Takata:
> 2. Test100 fails.
>
> This is an example of the test result:
>
> 1c1
> <
> ---
> > ONE: expecting global undolevels: 5, local undolevels: -123456 (default)
> 10a11,13
> > undolevels=5 global
> > undolevels=-123456 local
> > TWO: expecting global undolevels: 5, local undolevels: 2 (first) then 10
> > (afterwards)
> 24a28,30
> >
> > undolevels=5 global
> > undolevels=10 local
>
> I'm not sure what is happening with this, but it seems that feedkeys()
> causes some problems. After adding a ':' line after each call of
> feedkeys(), test100 succeeded. Wow!?
> (Make_dos.mak is also fixed because test100.ok must have unix line ending.)
It seems that test100 can also be fixed with the following patch:
diff --git a/src/testdir/Make_dos.mak b/src/testdir/Make_dos.mak
--- a/src/testdir/Make_dos.mak
+++ b/src/testdir/Make_dos.mak
@@ -94,7 +94,7 @@ win32: nolog $(SCRIPTS16) $(SCRIPTS) $(S
fixff:
-$(VIMPROG) -u dos.vim --noplugin "+argdo set ff=dos|upd" +q *.in *.ok
-$(VIMPROG) -u dos.vim --noplugin "+argdo set ff=unix|upd" +q \
- dotest.in test60.ok test71.ok test74.ok
+ dotest.in test60.ok test71.ok test74.ok test100.ok
report:
@ECHO ""
diff --git a/src/testdir/test100.in b/src/testdir/test100.in
--- a/src/testdir/test100.in
+++ b/src/testdir/test100.in
@@ -17,6 +17,6 @@ STARTTEST
:0put ='ONE: expecting global undolevels: 5, local undolevels: -123456
(default)'
:call FillBuffer()
-:call feedkeys(":earlier 10\n", 't')
+:earlier 10
:call UndoLevel()
:set ff=unix
:%w! test.out
@@ -25,6 +25,6 @@ STARTTEST
:setlocal ul=2
:call FillBuffer()
-:call feedkeys(":earlier 10\n", 't')
+:earlier 10
:call UndoLevel()
:setlocal ul=10
:call UndoLevel()
Is feedkeys() really needed in this test?
(I thought test100 was originally written by Christian.)
Regards,
Ken Takata
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.