mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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).
This commit is contained in:
parent
47391b18e2
commit
22c782bcb2
@ -464,11 +464,11 @@ int get_breakindent_win(win_T *wp, char_u *line) {
|
|||||||
prev_line = line;
|
prev_line = line;
|
||||||
prev_ts = wp->w_buffer->b_p_ts;
|
prev_ts = wp->w_buffer->b_p_ts;
|
||||||
prev_indent = get_indent_str(line,
|
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 */
|
/* indent minus the length of the showbreak string */
|
||||||
bri = prev_indent;
|
|
||||||
if (wp->w_p_brisbr)
|
if (wp->w_p_brisbr)
|
||||||
bri -= vim_strsize(p_sbr);
|
bri -= vim_strsize(p_sbr);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user