Skip to content

Commit

Permalink
Merge pull request #61 from z0xyz/new-branch
Browse files Browse the repository at this point in the history
changing write command to update
  • Loading branch information
907th authored Jul 23, 2022
2 parents d8ff037 + b9ca8ab commit 038c104
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugin/AutoSave.vim
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,11 @@ endfunction

function DoSave()
if g:auto_save_write_all_buffers >= 1
silent! wa
let current_buf = bufnr('%')
silent! bufdo update
execute 'buffer' . current_buf
else
silent! w
silent! update
endif
endfunction

Expand Down

0 comments on commit 038c104

Please sign in to comment.