File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,6 @@ function! suda#read(expr, ...) abort range
9999 else
100100 " write with 'b' to ensure contents are the same
101101 call writefile (resultlist, tempfile, ' b' )
102- " TODO: (aarondill) can we use readfile() here?
103102 let echo_message = execute (printf (
104103 \ ' %sread %s %s' ,
105104 \ options .range ,
@@ -181,12 +180,12 @@ function! suda#BufReadCmd() abort
181180 let ul = &undolevels
182181 set undolevels = -1
183182 try
183+ setlocal noswapfile noundofile
184184 let echo_message = suda#read (' <afile>' , {
185185 \ ' range' : ' 1' ,
186186 \} )
187187 silent 0 delete _
188188 setlocal buftype = acwrite
189- setlocal noswapfile noundofile
190189 setlocal nomodified
191190 filetype detect
192191 redraw | echo echo_message
You can’t perform that action at this time.
0 commit comments