summaryrefslogtreecommitdiff
path: root/home/neovim/init.vim
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2023-10-22 11:40:57 +0200
committerLinnnus <[email protected]>2023-10-22 11:40:57 +0200
commit7337179b8dff593d2b6f21dc596ec07a45d4c865 (patch)
treead1b5626d52bcbc2f52f5696faa79952e024eaed /home/neovim/init.vim
parentcad9fbeb827a9bc55a34162d2fcb7acd4e81489f (diff)
home/neovim: Fix SusWhitespace matching characters {at => beyound} &tw
Diffstat (limited to 'home/neovim/init.vim')
-rw-r--r--home/neovim/init.vim3
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