vim-patch:8.2.4100: early return when getting the 'formatlistpat' value

Problem:    Early return when getting the 'formatlistpat' value.
Solution:   Remove the first line. (Christian Brabandt)
04b871da80
This commit is contained in:
zeertzjq
2022-04-01 18:31:19 +08:00
parent b92ed35a0b
commit 8b43091392
2 changed files with 16 additions and 2 deletions

View File

@@ -5225,7 +5225,6 @@ unsigned int get_bkc_value(buf_T *buf)
/// @param buf The buffer.
char *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;
}