diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2020-11-13 00:12:03 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2020-11-13 00:12:03 +1300 |
commit | 0c9aad7d707b3bdb4aabeeb0119953458e7efdb8 (patch) | |
tree | 1926d7da9559c66805ea05ce48e2a0a986117cd8 | |
parent | Merge branch 'hotfix/v0.1.2' (diff) | |
parent | Bump VERSION (diff) | |
download | vim-detect-indent-0c9aad7d707b3bdb4aabeeb0119953458e7efdb8.tar.gz vim-detect-indent-0c9aad7d707b3bdb4aabeeb0119953458e7efdb8.zip |
Merge branch 'hotfix/v0.1.3'v0.1.3
* hotfix/v0.1.3:
Don't run for empty filetypes
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | autoload/detect_indent.vim | 5 |
2 files changed, 6 insertions, 1 deletions
@@ -1 +1 @@ -0.1.2 +0.1.3 diff --git a/autoload/detect_indent.vim b/autoload/detect_indent.vim index feaa5f9..ab3f485 100644 --- a/autoload/detect_indent.vim +++ b/autoload/detect_indent.vim @@ -6,6 +6,11 @@ endfunction " Entry point for plugin function! detect_indent#() abort + " If there's no filetype, don't do anything + if &filetype ==# '' + return + endif + " If this is a special buffer, don't do anything if index(['nofile', 'quickfix', 'help'], &buftype) >= 0 return |