diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-09-07 18:50:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-07 10:50:52 +0000 |
commit | 3d1110674ec330138ad6675f828673ca32575d4b (patch) | |
tree | cf003fb672fd2eab03f62cfe7655af2337ac2d2d /src/nvim/options.lua | |
parent | 738a84de09a053a01e9fc167722aed36cc782a1f (diff) | |
download | rneovim-3d1110674ec330138ad6675f828673ca32575d4b.tar.gz rneovim-3d1110674ec330138ad6675f828673ca32575d4b.tar.bz2 rneovim-3d1110674ec330138ad6675f828673ca32575d4b.zip |
vim-patch:9.1.0720: Wrong breakindentopt=list:-1 with multibyte or TABs (#30293)
Problem: Wrong breakindentopt=list:-1 with multibyte chars or TABs in
text matched by 'formatlistpat' (John M Devin)
Solution: Use the width of the match text (zeertzjq)
fixes: vim/vim#15634
closes: vim/vim#15635
https://github.com/vim/vim/commit/61a6ac4d0066317131528f1b3ecc3b3a2599a75c
Diffstat (limited to 'src/nvim/options.lua')
-rw-r--r-- | src/nvim/options.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/options.lua b/src/nvim/options.lua index 1c17b0fc9f..71b0d26b49 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -761,9 +761,9 @@ return { 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. (default: 0) + list:-1 Uses the width of a match with 'formatlistpat' for + indentation. column:{n} Indent at column {n}. Will overrule the other sub-options. Note: an additional indent may be added for the 'showbreak' setting. |