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:
committed by
Bram Moolenaar
parent
ece07639f4
commit
c53b467473
12
src/option.c
12
src/option.c
@@ -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.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user