vim:autocmd: Fix typo in OptionSet textwidth
The old `textwidth` value is meant to be subtracted from colorcolumn, to
then add the new one.
Fixes: 41656d28d6 ("vim:autocmd: Reset textwidth value in colorcolumn")
This commit is contained in:
@@ -58,7 +58,7 @@ endif
|
||||
autocmd SourcePost termdebug.vim tnoremap <Esc> <C-\><C-n>
|
||||
|
||||
" Adjust the colorcolumn together with &textwidth
|
||||
autocmd OptionSet textwidth exec 'set cc=' . v:option_old . ' | set cc+=' . &tw
|
||||
autocmd OptionSet textwidth exec 'set cc-=' . v:option_old . ' | set cc+=' . &tw
|
||||
"
|
||||
" Highlight word under cursor
|
||||
augroup highlight_current_word
|
||||
|
||||
Reference in New Issue
Block a user