summaryrefslogtreecommitdiff
path: root/home/neovim
diff options
context:
space:
mode:
Diffstat (limited to 'home/neovim')
-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