Karsten Hopp 5e6f65
To: vim_dev@googlegroups.com
Karsten Hopp 5e6f65
Subject: Patch 7.4.388
Karsten Hopp 5e6f65
Fcc: outbox
Karsten Hopp 5e6f65
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 5e6f65
Mime-Version: 1.0
Karsten Hopp 5e6f65
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 5e6f65
Content-Transfer-Encoding: 8bit
Karsten Hopp 5e6f65
------------
Karsten Hopp 5e6f65
Karsten Hopp 5e6f65
Patch 7.4.388
Karsten Hopp 5e6f65
Problem:    With 'linebreak' set and 'list' unset a Tab is not counted
Karsten Hopp 5e6f65
	    properly. (Kent Sibilev)
Karsten Hopp 5e6f65
Solution:   Check the 'list' option. (Christian Brabandt)
Karsten Hopp 5e6f65
Files:	    src/screen.c, src/testdir/test_listlbr_utf8.in,
Karsten Hopp 5e6f65
	    src/testdir/test_listlbr_utf8.ok
Karsten Hopp 5e6f65
Karsten Hopp 5e6f65
Karsten Hopp 5e6f65
*** ../vim-7.4.387/src/screen.c	2014-07-16 17:29:46.691536252 +0200
Karsten Hopp 5e6f65
--- src/screen.c	2014-07-30 16:41:15.167536033 +0200
Karsten Hopp 5e6f65
***************
Karsten Hopp 5e6f65
*** 4494,4500 ****
Karsten Hopp 5e6f65
  		    tab_len = (int)wp->w_buffer->b_p_ts
Karsten Hopp 5e6f65
  					- vcol % (int)wp->w_buffer->b_p_ts - 1;
Karsten Hopp 5e6f65
  #ifdef FEAT_LINEBREAK
Karsten Hopp 5e6f65
! 		    if (!wp->w_p_lbr)
Karsten Hopp 5e6f65
  #endif
Karsten Hopp 5e6f65
  		    /* tab amount depends on current column */
Karsten Hopp 5e6f65
  			n_extra = tab_len;
Karsten Hopp 5e6f65
--- 4494,4500 ----
Karsten Hopp 5e6f65
  		    tab_len = (int)wp->w_buffer->b_p_ts
Karsten Hopp 5e6f65
  					- vcol % (int)wp->w_buffer->b_p_ts - 1;
Karsten Hopp 5e6f65
  #ifdef FEAT_LINEBREAK
Karsten Hopp 5e6f65
! 		    if (!wp->w_p_lbr || !wp->w_p_list)
Karsten Hopp 5e6f65
  #endif
Karsten Hopp 5e6f65
  		    /* tab amount depends on current column */
Karsten Hopp 5e6f65
  			n_extra = tab_len;
Karsten Hopp 5e6f65
*** ../vim-7.4.387/src/testdir/test_listlbr_utf8.in	2014-07-16 17:01:38.279570568 +0200
Karsten Hopp 5e6f65
--- src/testdir/test_listlbr_utf8.in	2014-07-30 16:37:26.703537675 +0200
Karsten Hopp 5e6f65
***************
Karsten Hopp 5e6f65
*** 30,40 ****
Karsten Hopp 5e6f65
--- 30,51 ----
Karsten Hopp 5e6f65
  :redraw!
Karsten Hopp 5e6f65
  :let line=ScreenChar(winwidth(0))
Karsten Hopp 5e6f65
  :call DoRecordScreen()
Karsten Hopp 5e6f65
+ :"
Karsten Hopp 5e6f65
  :let g:test ="Test 2: set nolinebreak list"
Karsten Hopp 5e6f65
  :set list nolinebreak
Karsten Hopp 5e6f65
  :redraw!
Karsten Hopp 5e6f65
  :let line=ScreenChar(winwidth(0))
Karsten Hopp 5e6f65
  :call DoRecordScreen()
Karsten Hopp 5e6f65
+ :"
Karsten Hopp 5e6f65
+ :let g:test ="Test 3: set linebreak nolist"
Karsten Hopp 5e6f65
+ :$put =\"\t*mask = nil;\"
Karsten Hopp 5e6f65
+ :$
Karsten Hopp 5e6f65
+ :norm! zt
Karsten Hopp 5e6f65
+ :set nolist linebreak
Karsten Hopp 5e6f65
+ :redraw!
Karsten Hopp 5e6f65
+ :let line=ScreenChar(winwidth(0))
Karsten Hopp 5e6f65
+ :call DoRecordScreen()
Karsten Hopp 5e6f65
+ :"
Karsten Hopp 5e6f65
  :%w! test.out
Karsten Hopp 5e6f65
  :qa!
Karsten Hopp 5e6f65
  ENDTEST
Karsten Hopp 5e6f65
*** ../vim-7.4.387/src/testdir/test_listlbr_utf8.ok	2014-07-16 17:01:38.279570568 +0200
Karsten Hopp 5e6f65
--- src/testdir/test_listlbr_utf8.ok	2014-07-30 16:40:17.043536451 +0200
Karsten Hopp 5e6f65
***************
Karsten Hopp 5e6f65
*** 12,14 ****
Karsten Hopp 5e6f65
--- 12,21 ----
Karsten Hopp 5e6f65
  +pqrstuvwxyz␣1060ABC
Karsten Hopp 5e6f65
  +DEFGHIJKLMNOPˑ¶    
Karsten Hopp 5e6f65
Karsten Hopp 5e6f65
+ 	*mask = nil;
Karsten Hopp 5e6f65
+ 
Karsten Hopp 5e6f65
+ Test 3: set linebreak nolist
Karsten Hopp 5e6f65
+     *mask = nil;    
Karsten Hopp 5e6f65
+ ~                   
Karsten Hopp 5e6f65
+ ~                   
Karsten Hopp 5e6f65
+ ~                   
Karsten Hopp 5e6f65
*** ../vim-7.4.387/src/version.c	2014-07-30 16:00:45.551553496 +0200
Karsten Hopp 5e6f65
--- src/version.c	2014-07-30 16:40:57.659536159 +0200
Karsten Hopp 5e6f65
***************
Karsten Hopp 5e6f65
*** 736,737 ****
Karsten Hopp 5e6f65
--- 736,739 ----
Karsten Hopp 5e6f65
  {   /* Add new patch number below this line */
Karsten Hopp 5e6f65
+ /**/
Karsten Hopp 5e6f65
+     388,
Karsten Hopp 5e6f65
  /**/
Karsten Hopp 5e6f65
Karsten Hopp 5e6f65
-- 
Karsten Hopp 5e6f65
You can test a person's importance in the organization by asking how much RAM
Karsten Hopp 5e6f65
his computer has.  Anybody who knows the answer to that question is not a
Karsten Hopp 5e6f65
decision-maker.
Karsten Hopp 5e6f65
				(Scott Adams - The Dilbert principle)
Karsten Hopp 5e6f65
Karsten Hopp 5e6f65
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 5e6f65
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 5e6f65
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 5e6f65
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///