diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-08-08 18:07:57 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-08-08 22:22:34 -0400 |
commit | 43a874ab7441a4a0ab6e973f4fd7add394ed6dd9 (patch) | |
tree | ecba9c783bf59e7c7e3658ad7175da297af9f32f /src/nvim/option.c | |
parent | f89a275e32110a63e8ee1fc6ca75e0cf09194185 (diff) | |
download | rneovim-43a874ab7441a4a0ab6e973f4fd7add394ed6dd9.tar.gz rneovim-43a874ab7441a4a0ab6e973f4fd7add394ed6dd9.tar.bz2 rneovim-43a874ab7441a4a0ab6e973f4fd7add394ed6dd9.zip |
vim-patch:8.2.3198: cannot use 'formatlistpat' for breakindent
Problem: Cannot use 'formatlistpat' for breakindent.
Solution: Use a negative list indent. (Maxim Kim, closes vim/vim#8594)
https://github.com/vim/vim/commit/f674b358fc18cf1641a066cc5de73da69e651024
Port get_showbreak_value() from patch v8.1.2281
to avoid breaking changes when porting older patches.
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index e1f3e143ed..0595776f79 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -7674,6 +7674,12 @@ int win_signcol_configured(win_T *wp, int *is_fixed) return ret; } +// Get the local or global value of 'showbreak'. +char_u *get_showbreak_value(win_T *win FUNC_ATTR_UNUSED) +{ + return p_sbr; +} + /// Get window or buffer local options dict_T *get_winbuf_options(const int bufopt) FUNC_ATTR_WARN_UNUSED_RESULT |