aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-11-05 19:57:15 +0800
committerGitHub <noreply@github.com>2022-11-05 19:57:15 +0800
commit43681f237551dfebb64c44f60eb13459b82ea2ed (patch)
treeab9303393cb6190fb82e93893620e8ed56bed052 /src/nvim/option.c
parentda90be23088a3a0b8a517d66d446bdfef32e2872 (diff)
parente0ec83a9701ffd9b30a41763ad2e2326d85d8480 (diff)
downloadrneovim-43681f237551dfebb64c44f60eb13459b82ea2ed.tar.gz
rneovim-43681f237551dfebb64c44f60eb13459b82ea2ed.tar.bz2
rneovim-43681f237551dfebb64c44f60eb13459b82ea2ed.zip
Merge pull request #17950 from zeertzjq/vim-8.2.4029
vim-patch:8.2.{4029,4093,4100,4501,4882}: breakindent patches
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index 8de86ce76e..8142be4eb1 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -5220,6 +5220,17 @@ unsigned int 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'.
+///
+/// @param buf The buffer.
+char *get_flp_value(buf_T *buf)
+{
+ 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 get_ve_flags(void)
{