aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--VERSION2
-rw-r--r--autoload/detect_indent.vim5
2 files changed, 6 insertions, 1 deletions
diff --git a/VERSION b/VERSION
index d917d3e..b1e80bb 100644
--- a/VERSION
+++ b/VERSION
@@ -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