0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.4093: cached breakindent values not initialized properly

Problem:    Cached breakindent values not initialized properly.
Solution:   Initialize and cache formatlistpat. (Christian Brabandt,
            closes #9526, closes #9512)
This commit is contained in:
Christian Brabandt
2022-01-15 10:01:05 +00:00
committed by Bram Moolenaar
parent ece07639f4
commit c53b467473
6 changed files with 87 additions and 3 deletions

View File

@@ -7052,6 +7052,18 @@ get_bkc_value(buf_T *buf)
return buf->b_bkc_flags ? buf->b_bkc_flags : bkc_flags;
}
/*
* Get the local or global value of 'formatlistpat'.
*/
char_u *
get_flp_value(buf_T *buf)
{
return buf->b_p_flp ? buf->b_p_flp : p_flp;
if (buf->b_p_flp == NULL || *buf->b_p_flp == NUL)
return p_flp;
return buf->b_p_flp;
}
/*
* Get the local or global value of the 'virtualedit' flags.
*/