Skip to content

Commit 6e2b092

Browse files
authored
Ignore netrw buffers (#213)
Previously, when starting Neovim with a directory, opening a netrw buffer, it would encounter the following errors when trying to close (:q): E37: No write since last change E162: No write since last change for buffer "…" #212
1 parent 1d54632 commit 6e2b092

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

plugin/editorconfig.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,11 @@ function! s:ApplyConfig(config) abort " Set the buffer options {{{1
383383
return
384384
endif
385385

386+
" Do not process netrw buffers
387+
if &b:filetype == 'netrw'
388+
return
389+
endif
390+
386391
if g:EditorConfig_verbose
387392
echo 'Options: ' . string(a:config)
388393
endif

0 commit comments

Comments
 (0)