diff src/misc1.c @ 6012:3248c6e40aee v7.4.346

updated for version 7.4.346 Problem: Indent is not updated when changing 'breakindentopt'. (itchyny) Solution: Do not cache "brishift". (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Thu, 26 Jun 2014 21:24:56 +0200
parents ea2c5dfee1b0
children 0b7586868f6d
line wrap: on
line diff
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -513,11 +513,11 @@ get_breakindent_win(wp, line)
 	prev_ts = wp->w_buffer->b_p_ts;
 	prev_tick = wp->w_buffer->b_changedtick;
 	prev_indent = get_indent_str(line,
-		  (int)wp->w_buffer->b_p_ts, wp->w_p_list) + wp->w_p_brishift;
-    }
+				     (int)wp->w_buffer->b_p_ts, wp->w_p_list);
+    }
+    bri = prev_indent + wp->w_p_brishift;
 
     /* indent minus the length of the showbreak string */
-    bri = prev_indent;
     if (wp->w_p_brisbr)
 	bri -= vim_strsize(p_sbr);