From 43a874ab7441a4a0ab6e973f4fd7add394ed6dd9 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sun, 8 Aug 2021 18:07:57 -0400 Subject: 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. --- runtime/doc/options.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'runtime') diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 04cb7141df..f0ce15ac0f 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -1038,9 +1038,11 @@ A jump table for the options with a short description can be found at |Q_op|. continuation (positive). sbr Display the 'showbreak' value before applying the additional indent. - list:{n} Adds an additional indent for lines that match a + list:{n} Adds an additional indent for lines that match a numbered or bulleted list (using the 'formatlistpat' setting). + list:-1 Uses the length of a match with 'formatlistpat' + for indentation. The default value for min is 20, shift and list is 0. *'browsedir'* *'bsdir'* -- cgit