From d0266b757dd2318e88b9755018843c4f81b4c636 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 13 Nov 2020 00:02:23 +1300 Subject: Remove unneeded load guard --- vim/autoload/indent.vim | 9 --------- 1 file changed, 9 deletions(-) (limited to 'vim') diff --git a/vim/autoload/indent.vim b/vim/autoload/indent.vim index 5f62fb0b..959acabd 100644 --- a/vim/autoload/indent.vim +++ b/vim/autoload/indent.vim @@ -27,19 +27,10 @@ endfunction " Add commands to b:undo_indent to clean up buffer-local indentation changes " on a change of filetype function! indent#Undo() abort - - " Check and set a flag so that we only do this once per buffer - if exists('b:undo_indent_type_set') - return - endif - let b:undo_indent_type_set = 1 - - " Either set or append relevant commands to b:undo_indent let l:undo = 'setlocal expandtab< shiftwidth< softtabstop< tabstop<' if exists('b:undo_indent') let b:undo_indent .= '|'.l:undo else let b:undo_indent = l:undo endif - endfunction -- cgit v1.2.3