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)
diff --git a/src/option.c b/src/option.c
index 169f929..0a75c24 100644
--- a/src/option.c
+++ b/src/option.c
@@ -7053,6 +7053,18 @@
}
/*
+ * 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.
*/
unsigned int