jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.370

3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.370
3ef2ca
Fcc: outbox
3ef2ca
From: Bram Moolenaar <Bram@moolenaar.net>
3ef2ca
Mime-Version: 1.0
3ef2ca
Content-Type: text/plain; charset=UTF-8
3ef2ca
Content-Transfer-Encoding: 8bit
3ef2ca
------------
3ef2ca
3ef2ca
Patch 7.4.370
3ef2ca
Problem:    Linebreak test fails when encoding is not utf-8. (Danek Duvall)
3ef2ca
Solution:   Split the test in a single byte one and a utf-8 one. (Christian
3ef2ca
	    Brabandt)
3ef2ca
Files:	    src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak,
3ef2ca
	    src/testdir/Make_ming.mak, src/testdir/Make_os2.mak,
3ef2ca
	    src/testdir/Make_vms.mms, src/testdir/Makefile,
3ef2ca
	    src/testdir/test_listlbr.in, src/testdir/test_listlbr.ok,
3ef2ca
	    src/testdir/test_listlbr_utf8.in, src/testdir/test_listlbr_utf8.ok
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.369/src/testdir/Make_amiga.mak	2014-07-02 19:59:35.454375136 +0200
3ef2ca
--- src/testdir/Make_amiga.mak	2014-07-16 16:55:15.311578352 +0200
3ef2ca
***************
3ef2ca
*** 39,44 ****
3ef2ca
--- 39,45 ----
3ef2ca
  		test_autoformat_join.out \
3ef2ca
  		test_breakindent.out \
3ef2ca
  		test_listlbr.out \
3ef2ca
+ 		test_listlbr_utf8.out \
3ef2ca
  		test_eval.out \
3ef2ca
  		test_options.out
3ef2ca
  
3ef2ca
***************
3ef2ca
*** 167,171 ****
3ef2ca
--- 168,173 ----
3ef2ca
  test_autoformat_join.out: test_autoformat_join.in
3ef2ca
  test_breakindent.out: test_breakindent.in
3ef2ca
  test_listlbr.out: test_listlbr.in
3ef2ca
+ test_listlbr_utf8.out: test_listlbr_utf8.in
3ef2ca
  test_eval.out: test_eval.in
3ef2ca
  test_options.out: test_options.in
3ef2ca
*** ../vim-7.4.369/src/testdir/Make_dos.mak	2014-07-16 14:20:38.255766903 +0200
3ef2ca
--- src/testdir/Make_dos.mak	2014-07-16 16:56:02.423577394 +0200
3ef2ca
***************
3ef2ca
*** 38,43 ****
3ef2ca
--- 38,44 ----
3ef2ca
  		test_autoformat_join.out \
3ef2ca
  		test_breakindent.out \
3ef2ca
  		test_listlbr.out \
3ef2ca
+ 		test_listlbr_utf8.out \
3ef2ca
  		test_eval.out \
3ef2ca
  		test_options.out
3ef2ca
  
3ef2ca
*** ../vim-7.4.369/src/testdir/Make_ming.mak	2014-07-02 19:59:35.454375136 +0200
3ef2ca
--- src/testdir/Make_ming.mak	2014-07-16 16:55:15.311578352 +0200
3ef2ca
***************
3ef2ca
*** 58,63 ****
3ef2ca
--- 58,64 ----
3ef2ca
  		test_autoformat_join.out \
3ef2ca
  		test_breakindent.out \
3ef2ca
  		test_listlbr.out \
3ef2ca
+ 		test_listlbr_utf8.out \
3ef2ca
  		test_eval.out \
3ef2ca
  		test_options.out
3ef2ca
  
3ef2ca
*** ../vim-7.4.369/src/testdir/Make_os2.mak	2014-07-02 19:59:35.454375136 +0200
3ef2ca
--- src/testdir/Make_os2.mak	2014-07-16 16:55:15.311578352 +0200
3ef2ca
***************
3ef2ca
*** 40,45 ****
3ef2ca
--- 40,46 ----
3ef2ca
  		test_autoformat_join.out \
3ef2ca
  		test_eval.out \
3ef2ca
  		test_breakindent.out \
3ef2ca
+ 		test_listlbr_utf8.out \
3ef2ca
  		test_listlbr.out \
3ef2ca
  		test_options.out
3ef2ca
  
3ef2ca
*** ../vim-7.4.369/src/testdir/Make_vms.mms	2014-07-02 19:59:35.454375136 +0200
3ef2ca
--- src/testdir/Make_vms.mms	2014-07-16 16:55:15.311578352 +0200
3ef2ca
***************
3ef2ca
*** 99,104 ****
3ef2ca
--- 99,105 ----
3ef2ca
  	 test_autoformat_join.out \
3ef2ca
  	 test_breakindent.out \
3ef2ca
  	 test_listlbr.out \
3ef2ca
+ 	 test_listlbr_utf8.out \
3ef2ca
  	 test_eval.out \
3ef2ca
  	 test_options.out
3ef2ca
  
3ef2ca
*** ../vim-7.4.369/src/testdir/Makefile	2014-07-02 19:59:35.454375136 +0200
3ef2ca
--- src/testdir/Makefile	2014-07-16 16:55:15.311578352 +0200
3ef2ca
***************
3ef2ca
*** 36,41 ****
3ef2ca
--- 36,42 ----
3ef2ca
  		test_autoformat_join.out \
3ef2ca
  		test_breakindent.out \
3ef2ca
  		test_listlbr.out \
3ef2ca
+ 		test_listlbr_utf8.out \
3ef2ca
  		test_eval.out \
3ef2ca
  		test_options.out
3ef2ca
  
3ef2ca
*** ../vim-7.4.369/src/testdir/test_listlbr.in	2014-07-02 19:59:35.454375136 +0200
3ef2ca
--- src/testdir/test_listlbr.in	2014-07-16 16:55:15.311578352 +0200
3ef2ca
***************
3ef2ca
*** 1,10 ****
3ef2ca
! Test for linebreak and list option
3ef2ca
  
3ef2ca
  STARTTEST
3ef2ca
  :so small.vim
3ef2ca
  :if !exists("+linebreak") | e! test.ok | w! test.out | qa! | endif
3ef2ca
  :10new|:vsp|:vert resize 20
3ef2ca
! :put =\"\tabcdef hijklmn\tpqrstuvwxyz\u00a01060ABCDEFGHIJKLMNOP \"
3ef2ca
  :norm! zt
3ef2ca
  :set ts=4 sw=4 sts=4 linebreak sbr=+ wrap
3ef2ca
  :fu! ScreenChar(width)
3ef2ca
--- 1,10 ----
3ef2ca
! Test for linebreak and list option (non-utf8)
3ef2ca
  
3ef2ca
  STARTTEST
3ef2ca
  :so small.vim
3ef2ca
  :if !exists("+linebreak") | e! test.ok | w! test.out | qa! | endif
3ef2ca
  :10new|:vsp|:vert resize 20
3ef2ca
! :put =\"\tabcdef hijklmn\tpqrstuvwxyz_1060ABCDEFGHIJKLMNOP \"
3ef2ca
  :norm! zt
3ef2ca
  :set ts=4 sw=4 sts=4 linebreak sbr=+ wrap
3ef2ca
  :fu! ScreenChar(width)
3ef2ca
***************
3ef2ca
*** 32,53 ****
3ef2ca
  :redraw!
3ef2ca
  :let line=ScreenChar(winwidth(0))
3ef2ca
  :call DoRecordScreen()
3ef2ca
! :let g:test ="Test 3: set linebreak + set list + fancy listchars"
3ef2ca
! :exe "set linebreak list listchars=nbsp:\u2423,tab:\u2595\u2014,trail:\u02d1,eol:\ub6"
3ef2ca
! :redraw!
3ef2ca
! :let line=ScreenChar(winwidth(0))
3ef2ca
! :call DoRecordScreen()
3ef2ca
! :let g:test ="Test 4: set linebreak nolist"
3ef2ca
  :set nolist linebreak
3ef2ca
  :redraw!
3ef2ca
  :let line=ScreenChar(winwidth(0))
3ef2ca
  :call DoRecordScreen()
3ef2ca
! :let g:test ="Test 5: set nolinebreak list"
3ef2ca
! :set list nolinebreak
3ef2ca
! :redraw!
3ef2ca
! :let line=ScreenChar(winwidth(0))
3ef2ca
! :call DoRecordScreen()
3ef2ca
! :let g:test ="Test 6: set linebreak with tab and 1 line as long as screen: should break!"
3ef2ca
  :set nolist linebreak ts=8
3ef2ca
  :let line="1\t".repeat('a', winwidth(0)-2)
3ef2ca
  :$put =line
3ef2ca
--- 32,43 ----
3ef2ca
  :redraw!
3ef2ca
  :let line=ScreenChar(winwidth(0))
3ef2ca
  :call DoRecordScreen()
3ef2ca
! :let g:test ="Test 3: set linebreak nolist"
3ef2ca
  :set nolist linebreak
3ef2ca
  :redraw!
3ef2ca
  :let line=ScreenChar(winwidth(0))
3ef2ca
  :call DoRecordScreen()
3ef2ca
! :let g:test ="Test 4: set linebreak with tab and 1 line as long as screen: should break!"
3ef2ca
  :set nolist linebreak ts=8
3ef2ca
  :let line="1\t".repeat('a', winwidth(0)-2)
3ef2ca
  :$put =line
3ef2ca
*** ../vim-7.4.369/src/testdir/test_listlbr.ok	2014-07-02 19:59:35.454375136 +0200
3ef2ca
--- src/testdir/test_listlbr.ok	2014-07-16 16:55:15.315578352 +0200
3ef2ca
***************
3ef2ca
*** 1,38 ****
3ef2ca
  
3ef2ca
! 	abcdef hijklmn	pqrstuvwxyz 1060ABCDEFGHIJKLMNOP 
3ef2ca
  
3ef2ca
  Test 1: set linebreak
3ef2ca
      abcdef          
3ef2ca
  +hijklmn            
3ef2ca
! +pqrstuvwxyz 1060ABC
3ef2ca
  +DEFGHIJKLMNOP      
3ef2ca
  
3ef2ca
  Test 2: set linebreak + set list
3ef2ca
  ^Iabcdef hijklmn^I  
3ef2ca
! +pqrstuvwxyz 1060ABC
3ef2ca
  +DEFGHIJKLMNOP      
3ef2ca
                      
3ef2ca
  
3ef2ca
! Test 3: set linebreak + set list + fancy listchars
3ef2ca
! ▕———abcdef          
3ef2ca
! +hijklmn▕———        
3ef2ca
! +pqrstuvwxyz␣1060ABC
3ef2ca
! +DEFGHIJKLMNOPˑ¶    
3ef2ca
! 
3ef2ca
! Test 4: set linebreak nolist
3ef2ca
      abcdef          
3ef2ca
  +hijklmn            
3ef2ca
! +pqrstuvwxyz 1060ABC
3ef2ca
  +DEFGHIJKLMNOP      
3ef2ca
- 
3ef2ca
- Test 5: set nolinebreak list
3ef2ca
- ▕———abcdef hijklmn▕—
3ef2ca
- +pqrstuvwxyz␣1060ABC
3ef2ca
- +DEFGHIJKLMNOPˑ¶    
3ef2ca
- ¶                   
3ef2ca
  1	aaaaaaaaaaaaaaaaaa
3ef2ca
  
3ef2ca
! Test 6: set linebreak with tab and 1 line as long as screen: should break!
3ef2ca
  1                   
3ef2ca
  +aaaaaaaaaaaaaaaaaa 
3ef2ca
  ~                   
3ef2ca
--- 1,26 ----
3ef2ca
  
3ef2ca
! 	abcdef hijklmn	pqrstuvwxyz_1060ABCDEFGHIJKLMNOP 
3ef2ca
  
3ef2ca
  Test 1: set linebreak
3ef2ca
      abcdef          
3ef2ca
  +hijklmn            
3ef2ca
! +pqrstuvwxyz_1060ABC
3ef2ca
  +DEFGHIJKLMNOP      
3ef2ca
  
3ef2ca
  Test 2: set linebreak + set list
3ef2ca
  ^Iabcdef hijklmn^I  
3ef2ca
! +pqrstuvwxyz_1060ABC
3ef2ca
  +DEFGHIJKLMNOP      
3ef2ca
                      
3ef2ca
  
3ef2ca
! Test 3: set linebreak nolist
3ef2ca
      abcdef          
3ef2ca
  +hijklmn            
3ef2ca
! +pqrstuvwxyz_1060ABC
3ef2ca
  +DEFGHIJKLMNOP      
3ef2ca
  1	aaaaaaaaaaaaaaaaaa
3ef2ca
  
3ef2ca
! Test 4: set linebreak with tab and 1 line as long as screen: should break!
3ef2ca
  1                   
3ef2ca
  +aaaaaaaaaaaaaaaaaa 
3ef2ca
  ~                   
3ef2ca
*** ../vim-7.4.369/src/testdir/test_listlbr_utf8.in	2014-07-16 17:01:25.415570829 +0200
3ef2ca
--- src/testdir/test_listlbr_utf8.in	2014-07-16 16:55:15.315578352 +0200
3ef2ca
***************
3ef2ca
*** 0 ****
3ef2ca
--- 1,41 ----
3ef2ca
+ Test for linebreak and list option in utf-8 mode
3ef2ca
+ 
3ef2ca
+ STARTTEST
3ef2ca
+ :so small.vim
3ef2ca
+ :if !exists("+linebreak") | e! test.ok | w! test.out | qa! | endif
3ef2ca
+ :so mbyte.vim
3ef2ca
+ :if &enc !=? 'utf-8'|:e! test.ok|:w! test.out|qa!|endif
3ef2ca
+ :10new|:vsp|:vert resize 20
3ef2ca
+ :put =\"\tabcdef hijklmn\tpqrstuvwxyz\u00a01060ABCDEFGHIJKLMNOP \"
3ef2ca
+ :norm! zt
3ef2ca
+ :set ts=4 sw=4 sts=4 linebreak sbr=+ wrap
3ef2ca
+ :fu! ScreenChar(width)
3ef2ca
+ :	let c=''
3ef2ca
+ :	for j in range(1,4)
3ef2ca
+ :	    for i in range(1,a:width)
3ef2ca
+ :	    	let c.=nr2char(screenchar(j, i))
3ef2ca
+ :	    endfor
3ef2ca
+ :           let c.="\n"
3ef2ca
+ :	endfor
3ef2ca
+ :	return c
3ef2ca
+ :endfu
3ef2ca
+ :fu! DoRecordScreen()
3ef2ca
+ :	wincmd l
3ef2ca
+ :	$put =printf(\"\n%s\", g:test)
3ef2ca
+ :	$put =g:line
3ef2ca
+ :	wincmd p
3ef2ca
+ :endfu
3ef2ca
+ :let g:test ="Test 1: set linebreak + set list + fancy listchars"
3ef2ca
+ :exe "set linebreak list listchars=nbsp:\u2423,tab:\u2595\u2014,trail:\u02d1,eol:\ub6"
3ef2ca
+ :redraw!
3ef2ca
+ :let line=ScreenChar(winwidth(0))
3ef2ca
+ :call DoRecordScreen()
3ef2ca
+ :let g:test ="Test 2: set nolinebreak list"
3ef2ca
+ :set list nolinebreak
3ef2ca
+ :redraw!
3ef2ca
+ :let line=ScreenChar(winwidth(0))
3ef2ca
+ :call DoRecordScreen()
3ef2ca
+ :%w! test.out
3ef2ca
+ :qa!
3ef2ca
+ ENDTEST
3ef2ca
+ dummy text
3ef2ca
*** ../vim-7.4.369/src/testdir/test_listlbr_utf8.ok	2014-07-16 17:01:25.419570829 +0200
3ef2ca
--- src/testdir/test_listlbr_utf8.ok	2014-07-16 16:55:15.315578352 +0200
3ef2ca
***************
3ef2ca
*** 0 ****
3ef2ca
--- 1,14 ----
3ef2ca
+ 
3ef2ca
+ 	abcdef hijklmn	pqrstuvwxyz 1060ABCDEFGHIJKLMNOP 
3ef2ca
+ 
3ef2ca
+ Test 1: set linebreak + set list + fancy listchars
3ef2ca
+ ▕———abcdef          
3ef2ca
+ +hijklmn▕———        
3ef2ca
+ +pqrstuvwxyz␣1060ABC
3ef2ca
+ +DEFGHIJKLMNOPˑ¶    
3ef2ca
+ 
3ef2ca
+ Test 2: set nolinebreak list
3ef2ca
+ ▕———abcdef hijklmn▕—
3ef2ca
+ +pqrstuvwxyz␣1060ABC
3ef2ca
+ +DEFGHIJKLMNOPˑ¶    
3ef2ca
+ ¶                   
3ef2ca
*** ../vim-7.4.369/src/version.c	2014-07-16 16:30:21.647608710 +0200
3ef2ca
--- src/version.c	2014-07-16 16:56:38.755576656 +0200
3ef2ca
***************
3ef2ca
*** 736,737 ****
3ef2ca
--- 736,739 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     370,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
   Another bucket of what can only be described as human ordure hits ARTHUR.
3ef2ca
ARTHUR: ... Right!  (to the KNIGHTS) That settles it!
3ef2ca
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
3ef2ca
3ef2ca
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3ef2ca
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3ef2ca
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
3ef2ca
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///