Skip to content

Commit d354117

Browse files
iamFIREcrackercxw42
authored andcommitted
Don't skip acwrite buffers
Prior to this change, the editorconfig-vim will skip processing any non-'normal' buffer, and the idea behind this is that we would not want it to mess around with, say, 'help' or 'quickfix' buffers. However, 'acwrite' buffers act pretty much like any other 'normal' buffer, with custom filetypes and all; the only difference is that 'acwrite' buffers will always be writtein with BufWriteCmd autocommands (see `:h buftype`). Because of this, I have changed editorconfig-vim to skip processing buffers which are not 'normal' (i.e., empty buftype), or 'acwrite'.
1 parent a8e3e66 commit d354117

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugin/editorconfig.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ endfunction " }}}2
368368

369369
function! s:ApplyConfig(config) abort " Set the buffer options {{{1
370370
" Only process normal buffers (do not treat help files as '.txt' files)
371-
if !empty(&buftype)
371+
if index(['', 'acwrite'], &buftype) == -1
372372
return
373373
endif
374374

0 commit comments

Comments
 (0)