summaryrefslogtreecommitdiff
path: root/src/misc1.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-06-26 21:24:56 +0200
committerBram Moolenaar <Bram@vim.org>2014-06-26 21:24:56 +0200
commit9d7a592c8007d67627eac34edac14996926a99f8 (patch)
tree681e48243f5bca27c10c1ea9999db4d514aa4379 /src/misc1.c
parenta40aa760a1f49defccf2f8090d9f5ddf463e3303 (diff)
downloadvim-9d7a592c8007d67627eac34edac14996926a99f8.zip
updated for version 7.4.346
Problem: Indent is not updated when changing 'breakindentopt'. (itchyny) Solution: Do not cache "brishift". (Christian Brabandt)
Diffstat (limited to 'src/misc1.c')
-rw-r--r--src/misc1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc1.c b/src/misc1.c
index ebcb0b233..fbd94d946 100644
--- 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);