mirror of
https://github.com/preservim/vim-indent-guides.git
synced 2025-11-08 09:53:48 -05:00
Process autocmds when sw, et or ts option changes (#133)
The autocmd is only enabled on vim newer than 7.4.786 where the OptionSet autocmd feature was introduced.
This commit is contained in:
@@ -86,6 +86,9 @@ augroup indent_guides
|
||||
endif
|
||||
|
||||
autocmd BufEnter,WinEnter,FileType * call indent_guides#process_autocmds()
|
||||
if (v:version == 704 && has('patch786')) || (v:version > 704)
|
||||
autocmd OptionSet tabstop,shiftwidth,expandtab call indent_guides#process_autocmds()
|
||||
endif
|
||||
|
||||
" Trigger BufEnter and process modelines.
|
||||
autocmd ColorScheme * doautocmd indent_guides BufEnter
|
||||
|
||||
Reference in New Issue
Block a user