Skip to content

Commit e333169

Browse files
authored
Remove nobackup option (#86)
Close #85 The `backup` (and `nobackup`) option is global and not local to the buffer so this change affects all buffers. This is not the intended. Note that it seems the `backup` option does not have any effect while suda write the file through `BufWriteCmd`. So this simple change should not affect the security of the plugin.
1 parent b97fab5 commit e333169

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/suda.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ function! suda#BufReadCmd() abort
186186
\})
187187
silent 0delete _
188188
setlocal buftype=acwrite
189-
setlocal nobackup noswapfile noundofile
189+
setlocal noswapfile noundofile
190190
setlocal nomodified
191191
filetype detect
192192
redraw | echo echo_message

0 commit comments

Comments
 (0)