From 05f068ebd9dbdf71d2d334d02abd99deb0311c40 Mon Sep 17 00:00:00 2001 From: Scott Bronson Date: Wed, 18 Nov 2020 11:32:39 -0800 Subject: [PATCH] Revert "add autocmd for filetype changes" This reverts commit 7c533894153acff96c275b76794abed29829b5d7, pull request #21. It is causing non-erroneous trailing whitespace to be highlighted. Fixes #22. --- plugin/trailing-whitespace.vim | 1 - 1 file changed, 1 deletion(-) diff --git a/plugin/trailing-whitespace.vim b/plugin/trailing-whitespace.vim index cbaa68d..81cbd2b 100644 --- a/plugin/trailing-whitespace.vim +++ b/plugin/trailing-whitespace.vim @@ -16,7 +16,6 @@ endfunction highlight default ExtraWhitespace ctermbg=darkred guibg=darkred autocmd ColorScheme * highlight default ExtraWhitespace ctermbg=darkred guibg=darkred autocmd BufRead,BufNew * if ShouldMatchWhitespace() | match ExtraWhitespace /\\\@