aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFelipe Morales <hel.sheep@gmail.com>2014-08-16 12:18:05 -0400
committerFelipe Morales <hel.sheep@gmail.com>2014-08-20 05:19:57 -0400
commit22c782bcb24aa191163ebf80de5a75acaba823b3 (patch)
tree11772923c2f5deab99babe074a38c62970437d74 /src
parent47391b18e2084f2747b10aa6158bc40e03f01528 (diff)
downloadrneovim-22c782bcb24aa191163ebf80de5a75acaba823b3.tar.gz
rneovim-22c782bcb24aa191163ebf80de5a75acaba823b3.tar.bz2
rneovim-22c782bcb24aa191163ebf80de5a75acaba823b3.zip
vim-patch: 7.4.346
Do not cache "brishift". Indent was not updated when changing 'breakindentopt'. Reported by itchiny, fixed by chrisbra in vim patch 7.3.346 (https://code.google.com/p/vim/source/detail?r=3248c6e40aee01a7254d111dd846c6ec7889a804).
Diffstat (limited to 'src')
-rw-r--r--src/nvim/indent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/indent.c b/src/nvim/indent.c
index 7673a297f6..9258ee93b6 100644
--- a/src/nvim/indent.c
+++ b/src/nvim/indent.c
@@ -464,11 +464,11 @@ int get_breakindent_win(win_T *wp, char_u *line) {
prev_line = line;
prev_ts = wp->w_buffer->b_p_ts;
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);