diff --git a/plugin/editorconfig.vim b/plugin/editorconfig.vim index 5de58472..2daaa0b1 100644 --- a/plugin/editorconfig.vim +++ b/plugin/editorconfig.vim @@ -197,6 +197,7 @@ function! s:GetFilenames(path, filename) " {{{1 endfunction " }}}1 function! s:UseConfigFiles() abort " Apply config to the current buffer {{{1 + let b:editorconfig_tried = 1 let l:buffer_name = expand('%:p') " ignore buffers without a name if empty(l:buffer_name) @@ -242,9 +243,12 @@ function! s:UseConfigFiles() abort " Apply config to the current buffer {{{1 endfor if s:editorconfig_core_mode ==? 'vim_core' - call s:UseConfigFiles_VimCore() + if s:UseConfigFiles_VimCore() == 0 + let b:editorconfig_applied = 1 + endif elseif s:editorconfig_core_mode ==? 'external_command' call s:UseConfigFiles_ExternalCommand() + let b:editorconfig_applied = 1 else echohl Error | \ echo "Unknown EditorConfig Core: " .