Hi Bram and Nobuhiro,

2014/05/28(Wed) 20:42:17 UTC+9 Bram Moolenaar:
> Nobuhiro Takasaki wrote:
> 
> 
> 
> > It is a test that is an error in the patch before.
> 
> > It does not result in an error in the patch after.
> 
> > The correctness of meaning, there is no confidence.
> 
> > 
> 
> > If there is a better way, that would be better.
> 
> 
> 
> It appears the patch fixes the reported problem, but the test still
> 
> fails.  Problem is that the test depends on the terminal height.

I create a new test107.
Please check this.

--
Best regards,
Hirohito Higashi

> 
> 
> 
> -- 
> 
> From the classified section of a city newspaper:
> 
> Dog for sale: eats anything and is fond of children.
> 
> 
> 
>  /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
> 
> ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
> 
> \\\  an exciting new programming language -- http://www.Zimbu.org        ///
> 
>  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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.
diff -r b36f5435ec98 src/testdir/Make_amiga.mak
--- a/src/testdir/Make_amiga.mak	Wed May 28 21:40:52 2014 +0200
+++ b/src/testdir/Make_amiga.mak	Thu May 29 15:10:57 2014 +0900
@@ -35,7 +35,7 @@
 		test89.out test90.out test91.out test92.out test93.out \
 		test94.out test95.out test96.out test97.out test98.out \
 		test99.out test100.out test101.out test102.out test103.out \
-		test104.out test105.out test106.out \
+		test104.out test105.out test106.out test107.out \
 		test_autoformat_join.out \
 		test_eval.out \
 		test_options.out
@@ -161,6 +161,7 @@
 test104.out: test104.in
 test105.out: test105.in
 test106.out: test106.in
+test107.out: test107.in
 test_autoformat_join.out: test_autoformat_join.in
 test_eval.out: test_eval.in
 test_options.out: test_options.in
diff -r b36f5435ec98 src/testdir/Make_dos.mak
--- a/src/testdir/Make_dos.mak	Wed May 28 21:40:52 2014 +0200
+++ b/src/testdir/Make_dos.mak	Thu May 29 15:10:57 2014 +0900
@@ -34,7 +34,7 @@
 		test89.out test90.out test91.out test92.out test93.out \
 		test94.out test95.out test96.out test98.out test99.out \
 		test100.out test101.out test102.out test103.out test104.out \
-		test105.out test106.out \
+		test105.out test106.out test107.out \
 		test_autoformat_join.out \
 		test_eval.out \
 		test_options.out
diff -r b36f5435ec98 src/testdir/Make_ming.mak
--- a/src/testdir/Make_ming.mak	Wed May 28 21:40:52 2014 +0200
+++ b/src/testdir/Make_ming.mak	Thu May 29 15:10:57 2014 +0900
@@ -54,7 +54,7 @@
 		test89.out test90.out test91.out test92.out test93.out \
 		test94.out test95.out test96.out test98.out test99.out \
 		test100.out test101.out test102.out test103.out test104.out \
-		test105.out test106.out \
+		test105.out test106.out test107.out \
 		test_autoformat_join.out \
 		test_eval.out \
 		test_options.out
diff -r b36f5435ec98 src/testdir/Make_os2.mak
--- a/src/testdir/Make_os2.mak	Wed May 28 21:40:52 2014 +0200
+++ b/src/testdir/Make_os2.mak	Thu May 29 15:10:57 2014 +0900
@@ -36,7 +36,7 @@
 		test89.out test90.out test91.out test92.out test93.out \
 		test94.out test95.out test96.out test98.out test99.out \
 		test100.out test101.out test102.out test103.out test104.out \
-		test105.out test106.out \
+		test105.out test106.out test107.out \
 		test_autoformat_join.out \
 		test_eval.out \
 		test_options.out
diff -r b36f5435ec98 src/testdir/Make_vms.mms
--- a/src/testdir/Make_vms.mms	Wed May 28 21:40:52 2014 +0200
+++ b/src/testdir/Make_vms.mms	Thu May 29 15:10:57 2014 +0900
@@ -95,7 +95,7 @@
 	 test90.out test91.out test92.out test93.out test94.out \
 	 test95.out test96.out test98.out test99.out \
 	 test100.out test101.out test103.out test104.out \
-	 test105.out test106.out \
+	 test105.out test106.out test107.out \
 	 test_autoformat_join.out \
 	 test_eval.out \
 	 test_options.out
diff -r b36f5435ec98 src/testdir/Makefile
--- a/src/testdir/Makefile	Wed May 28 21:40:52 2014 +0200
+++ b/src/testdir/Makefile	Thu May 29 15:10:57 2014 +0900
@@ -32,7 +32,7 @@
 		test89.out test90.out test91.out test92.out test93.out \
 		test94.out test95.out test96.out test97.out test98.out \
 		test99.out test100.out test101.out test102.out test103.out \
-		test104.out test105.out test106.out \
+		test104.out test105.out test106.out test107.out \
 		test_autoformat_join.out \
 		test_eval.out \
 		test_options.out
diff -r b36f5435ec98 src/testdir/test107.in
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/testdir/test107.in	Thu May 29 15:10:57 2014 +0900
@@ -0,0 +1,38 @@
+Tests for adjusting window and contents     vim: set ft=vim :
+
+STARTTEST
+:so small.vim
+:new
+:call setline(1, range(1,256))
+:let r=[]
+:func! GetScreenStr(row)
+:   let str = ""
+:   for c in range(1,3)
+:       let str .= nr2char(screenchar(a:row, c))
+:   endfor
+:   return str
+:endfunc
+:
+:exe ":norm! \<C-W>t\<C-W>=1Gzt\<C-W>w\<C-W>+"
+:let s3=GetScreenStr(1)
+:wincmd p
+:call add(r, [line("w0"), s3])
+:
+:exe ":norm! \<C-W>t\<C-W>=50Gzt\<C-W>w\<C-W>+"
+:let s3=GetScreenStr(1)
+:wincmd p
+:call add(r, [line("w0"), s3])
+:
+:exe ":norm! \<C-W>t\<C-W>=59Gzt\<C-W>w\<C-W>+"
+:let s3=GetScreenStr(1)
+::wincmd p
+:call add(r, [line("w0"), s3])
+:
+:bwipeout!
+:$put=r
+:call garbagecollect(1)
+:"
+:/^start:/,$wq! test.out
+ENDTEST
+
+start:
diff -r b36f5435ec98 src/testdir/test107.ok
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/testdir/test107.ok	Thu May 29 15:10:57 2014 +0900
@@ -0,0 +1,4 @@
+start:
+[1, '1  ']
+[50, '50 ']
+[59, '59 ']

Raspunde prin e-mail lui