Disable the plugin when in a diff.

Closes #48.
This commit is contained in:
Nate Kane 2013-03-07 08:59:56 +10:00
parent cf3948a3fb
commit 29037575e3
2 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,7 @@ endfunction
function! indent_guides#enable()
let g:indent_guides_autocmds_enabled = 1
if indent_guides#exclude_filetype()
if &diff || indent_guides#exclude_filetype()
call indent_guides#clear_matches()
return
end

View File

@ -239,6 +239,7 @@ Bug reports, feedback, suggestions etc are welcomed.
* Added way to override the default mapping (thanks xuhdev).
* Added option g:|indent_guides_exclude_filetypes| to specify a list of
filetypes to disable the plugin for.
* Disable the plugin when in a diff.
1.6~
* Added option g:|indent_guides_space_guides| to control whether spaces are