]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.388 v7.4.388
authorBram Moolenaar <Bram@vim.org>
Wed, 30 Jul 2014 14:44:22 +0000 (16:44 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 30 Jul 2014 14:44:22 +0000 (16:44 +0200)
Problem:    With 'linebreak' set and 'list' unset a Tab is not counted
            properly. (Kent Sibilev)
Solution:   Check the 'list' option. (Christian Brabandt)

src/screen.c
src/testdir/test_listlbr_utf8.in
src/testdir/test_listlbr_utf8.ok
src/version.c

index abbd9112d36d256ec9d7398e1b7c1470f2c4b8eb..188b36f9c0091f794369fc1d4b7d1b8bb852f97e 100644 (file)
@@ -4494,7 +4494,7 @@ win_line(wp, lnum, startrow, endrow, nochange)
                    tab_len = (int)wp->w_buffer->b_p_ts
                                        - vcol % (int)wp->w_buffer->b_p_ts - 1;
 #ifdef FEAT_LINEBREAK
-                   if (!wp->w_p_lbr)
+                   if (!wp->w_p_lbr || !wp->w_p_list)
 #endif
                    /* tab amount depends on current column */
                        n_extra = tab_len;
index f8888d5332b29a723f240b19e9533958a84bbb06..ba12adae05e52219b76add4cc5a90b96fabaf708 100644 (file)
@@ -30,11 +30,22 @@ STARTTEST
 :redraw!
 :let line=ScreenChar(winwidth(0))
 :call DoRecordScreen()
+:"
 :let g:test ="Test 2: set nolinebreak list"
 :set list nolinebreak
 :redraw!
 :let line=ScreenChar(winwidth(0))
 :call DoRecordScreen()
+:"
+:let g:test ="Test 3: set linebreak nolist"
+:$put =\"\t*mask = nil;\"
+:$
+:norm! zt
+:set nolist linebreak
+:redraw!
+:let line=ScreenChar(winwidth(0))
+:call DoRecordScreen()
+:"
 :%w! test.out
 :qa!
 ENDTEST
index 576ccfb401f6429098fa454d0658afa2a11e039c..634cf3906dc4602bd6c155cb69942ad2e6625ad5 100644 (file)
@@ -12,3 +12,10 @@ Test 2: set nolinebreak list
 +pqrstuvwxyz␣1060ABC
 +DEFGHIJKLMNOPˑ¶    
 ¶                   
+       *mask = nil;
+
+Test 3: set linebreak nolist
+    *mask = nil;    
+~                   
+~                   
+~                   
index 33bcfbabd5b73e7d2efe293cbcd1b6aff730f02c..d80a08aa65f42e3b1337419124f4e4954a758faa 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    388,
 /**/
     387,
 /**/