jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone
3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.422
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.422
3ef2ca
Problem:    When using conceal with linebreak some text is not displayed
3ef2ca
	    correctly. (GrĂ¼ner Gimpel)
3ef2ca
Solution:   Check for conceal mode when using linebreak. (Christian Brabandt)
3ef2ca
Files:	    src/screen.c, src/testdir/test_listlbr.in,
3ef2ca
	    src/testdir/test_listlbr.ok
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.421/src/screen.c	2014-08-16 16:28:31.882272056 +0200
3ef2ca
--- src/screen.c	2014-08-29 12:08:11.478423596 +0200
3ef2ca
***************
3ef2ca
*** 4514,4519 ****
3ef2ca
--- 4514,4524 ----
3ef2ca
  			int	i;
3ef2ca
  			int	saved_nextra = n_extra;
3ef2ca
  
3ef2ca
+ #ifdef FEAT_CONCEAL
3ef2ca
+ 			if (is_concealing && vcol_off > 0)
3ef2ca
+ 			    /* there are characters to conceal */
3ef2ca
+ 			    tab_len += vcol_off;
3ef2ca
+ #endif
3ef2ca
  			/* if n_extra > 0, it gives the number of chars, to
3ef2ca
  			 * use for a tab, else we need to calculate the width
3ef2ca
  			 * for a tab */
3ef2ca
***************
3ef2ca
*** 4539,4544 ****
3ef2ca
--- 4544,4555 ----
3ef2ca
  #endif
3ef2ca
  			}
3ef2ca
  			p_extra = p_extra_free;
3ef2ca
+ #ifdef FEAT_CONCEAL
3ef2ca
+ 			/* n_extra will be increased by FIX_FOX_BOGUSCOLS
3ef2ca
+ 			 * macro below, so need to adjust for that here */
3ef2ca
+ 			if (is_concealing && vcol_off > 0)
3ef2ca
+ 			    n_extra -= vcol_off;
3ef2ca
+ #endif
3ef2ca
  		    }
3ef2ca
  #endif
3ef2ca
  #ifdef FEAT_CONCEAL
3ef2ca
*** ../vim-7.4.421/src/testdir/test_listlbr.in	2014-07-16 17:01:38.279570568 +0200
3ef2ca
--- src/testdir/test_listlbr.in	2014-08-29 12:03:48.126423021 +0200
3ef2ca
***************
3ef2ca
*** 46,51 ****
3ef2ca
--- 46,61 ----
3ef2ca
  :redraw!
3ef2ca
  :let line=ScreenChar(winwidth(0))
3ef2ca
  :call DoRecordScreen()
3ef2ca
+ :let line="_S_\t bla"
3ef2ca
+ :$put =line
3ef2ca
+ :$
3ef2ca
+ :norm! zt
3ef2ca
+ :let g:test ="Test 5: set linebreak with conceal and set list and tab displayed by different char (line may not be truncated)"
3ef2ca
+ :set cpo&vim list linebreak conceallevel=2 concealcursor=nv listchars=tab:ab
3ef2ca
+ :syn match ConcealVar contained /_/ conceal
3ef2ca
+ :syn match All /.*/ contains=ConcealVar
3ef2ca
+ :let line=ScreenChar(winwidth(0))
3ef2ca
+ :call DoRecordScreen()
3ef2ca
  :%w! test.out
3ef2ca
  :qa!
3ef2ca
  ENDTEST
3ef2ca
*** ../vim-7.4.421/src/testdir/test_listlbr.ok	2014-07-16 17:01:38.279570568 +0200
3ef2ca
--- src/testdir/test_listlbr.ok	2014-08-29 12:03:48.126423021 +0200
3ef2ca
***************
3ef2ca
*** 25,27 ****
3ef2ca
--- 25,34 ----
3ef2ca
  +aaaaaaaaaaaaaaaaaa 
3ef2ca
  ~                   
3ef2ca
  ~                   
3ef2ca
+ _S_	 bla
3ef2ca
+ 
3ef2ca
+ Test 5: set linebreak with conceal and set list and tab displayed by different char (line may not be truncated)
3ef2ca
+ Sabbbbbb bla        
3ef2ca
+ ~                   
3ef2ca
+ ~                   
3ef2ca
+ ~                   
3ef2ca
*** ../vim-7.4.421/src/version.c	2014-08-29 11:56:21.350422045 +0200
3ef2ca
--- src/version.c	2014-08-29 12:04:26.658423105 +0200
3ef2ca
***************
3ef2ca
*** 743,744 ****
3ef2ca
--- 743,746 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     422,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
From "know your smileys":
3ef2ca
 ;-0	Can't find shift key
3ef2ca
 ,-9	Kann Umschalttaste nicht finden
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    ///