Skip to content

Commit 8b0fc37

Browse files
authored
call checktime after write to warn about changed files (#59)
This was first suggested in #43 and was forgotten after. This simply adds the call to the end of suda#Write().
1 parent 6c54de3 commit 8b0fc37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

autoload/suda.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ function! suda#write(expr, ...) abort range
126126
finally
127127
silent call delete(tempfile)
128128
endtry
129+
" Warn that this file has changed
130+
checktime
129131
endfunction
130132

131133
function! suda#BufReadCmd() abort

0 commit comments

Comments
 (0)