Hi Bram!

On Mi, 06 Feb 2013, Bram Moolenaar wrote:

> 
> Patch 7.3.799
> Problem:    The color column is not correct when entering a buffer. (Ben
>           Fritz)
> Solution:   Call check_colorcolumn() if 'textwidth' changed. (Christian
>           Brabandt)
> Files:            src/buffer.c

This segfaults for me at Test 87 in test49.vim This patch fixes it:

diff --git a/src/buffer.c b/src/buffer.c
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1442,7 +1442,7 @@
     buf_T      *buf;
 {
 #ifdef FEAT_SYN_HL
-    long old_tw = curbuf->b_p_tw;
+    long old_tw = buf_valid(curbuf) ? curbuf->b_p_tw : 0;
 #endif
 
     /* Copy buffer and window local option values.  Not for a help buffer. */


regards,
Christian
-- 
Ein liebes Wort hat oft die Macht, ein Wunder zu vollbringen; es
bringt aus Leid und dunkler Nacht ein Menschenherz zum Klingen.
                -- Fischer-Friesenhausen

-- 
-- 
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/groups/opt_out.


Raspunde prin e-mail lui