Skip to content

Commit 2903757

Browse files
committed
Disable the plugin when in a diff.
Closes #48.
1 parent cf3948a commit 2903757

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

autoload/indent_guides.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ endfunction
3333
function! indent_guides#enable()
3434
let g:indent_guides_autocmds_enabled = 1
3535

36-
if indent_guides#exclude_filetype()
36+
if &diff || indent_guides#exclude_filetype()
3737
call indent_guides#clear_matches()
3838
return
3939
end

doc/indent_guides.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ Bug reports, feedback, suggestions etc are welcomed.
239239
* Added way to override the default mapping (thanks xuhdev).
240240
* Added option g:|indent_guides_exclude_filetypes| to specify a list of
241241
filetypes to disable the plugin for.
242+
* Disable the plugin when in a diff.
242243

243244
1.6~
244245
* Added option g:|indent_guides_space_guides| to control whether spaces are

0 commit comments

Comments
 (0)