diff options
author | Linnnus <[email protected]> | 2023-10-22 11:40:57 +0200 |
---|---|---|
committer | Linnnus <[email protected]> | 2023-10-22 11:40:57 +0200 |
commit | 7337179b8dff593d2b6f21dc596ec07a45d4c865 (patch) | |
tree | ad1b5626d52bcbc2f52f5696faa79952e024eaed /home | |
parent | cad9fbeb827a9bc55a34162d2fcb7acd4e81489f (diff) |
home/neovim: Fix SusWhitespace matching characters {at => beyound} &tw
Diffstat (limited to 'home')
-rw-r--r-- | home/neovim/init.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/home/neovim/init.vim b/home/neovim/init.vim index b0eb388..2fa6917 100644 --- a/home/neovim/init.vim +++ b/home/neovim/init.vim @@ -209,7 +209,8 @@ augroup Sus " Any characters beyond the maximum width of the text. if &tw > 0 - exe 'syn match SusWhitespace /\%' . &tw . 'v.\+/ containedin=ALL' + let reg = '\%' . (&tw + 1) . 'v.\+' + exe 'syn match SusWhitespace /'.reg.'/ containedin=ALL' endif endif endfun |