Skip to content

Commit

Permalink
Make BufWrite autocommands silent.
Browse files Browse the repository at this point in the history
  • Loading branch information
thaerkh committed Jul 14, 2017
1 parent 632a91a commit ddbdd94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/workspace.vim
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ function! s:Autosave(timed)
let s:last_update = current_time
checktime " checktime with autoread will sync files on a last-writer-wins basis.
call s:UntrailSpaces()
doautocmd BufWritePre % " needed for soft checks
silent! doautocmd BufWritePre % " needed for soft checks
silent! update " only updates if there are changes to the file.
if a:timed == 0 || s:time_delta >= g:workspace_autosave_au_updatetime
doautocmd BufWritePost % " Periodically trigger BufWritePost.
silent! doautocmd BufWritePost % " Periodically trigger BufWritePost.
endif
endif
endfunction
Expand Down

0 comments on commit ddbdd94

Please sign in to comment.