Skip to content

Commit

Permalink
Also subject current buffer to 'buftype' check before writing
Browse files Browse the repository at this point in the history
Closes #75
  • Loading branch information
tpope committed Apr 5, 2021
1 parent 4a4bf16 commit dbbbf85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/eunuch.vim
Expand Up @@ -301,7 +301,7 @@ function! s:Wall() abort
let tab = tabpagenr()
let win = winnr()
let seen = {}
if !&readonly && expand('%') !=# ''
if !&readonly && &buftype =~# '^\%(acwrite\)\=$' && expand('%') !=# ''
let seen[bufnr('')] = 1
write
endif
Expand Down

0 comments on commit dbbbf85

Please sign in to comment.