From 2d31374387b09861501b7446525f796b82294d9a Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 13 Nov 2020 00:00:20 +1300 Subject: Don't run for empty filetypes --- autoload/detect_indent.vim | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3 From 53f58e37255dcbbb3c9d8eb5f984e9d5e798c73e Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 13 Nov 2020 00:11:55 +1300 Subject: Bump VERSION --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index d917d3e..b1e80bb 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.2 +0.1.3 -- cgit v1.2.3