We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 895c8fa commit 2a4e620Copy full SHA for 2a4e620
autoload/dispatch.vim
@@ -267,8 +267,19 @@ endfunction
267
268
function! dispatch#autowrite() abort
269
if &autowrite || &autowriteall
270
- silent! wall
+ try
271
+ if &confirm
272
+ let reconfirm = 1
273
+ setglobal noconfirm
274
+ endif
275
+ silent! wall
276
+ finally
277
+ if exists('reconfirm')
278
+ setglobal confirm
279
280
+ endtry
281
endif
282
+ return ''
283
endfunction
284
285
function! dispatch#status_var() abort
0 commit comments