Skip to content

Commit

Permalink
call checktime after write to warn about changed files (#59)
Browse files Browse the repository at this point in the history
This was first suggested in #43 and was forgotten after. This simply adds the call to the end of suda#Write().
  • Loading branch information
aarondill authored Jun 27, 2023
1 parent 6c54de3 commit 8b0fc37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autoload/suda.vim
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ function! suda#write(expr, ...) abort range
finally
silent call delete(tempfile)
endtry
" Warn that this file has changed
checktime
endfunction

function! suda#BufReadCmd() abort
Expand Down

0 comments on commit 8b0fc37

Please sign in to comment.