We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a05e63b + 92d7a8f commit cefe37eCopy full SHA for cefe37e
autoload/sy/repo.vim
@@ -310,6 +310,10 @@ function! sy#repo#diffmode(do_tab) abort
310
let base = s:get_base(bufnr(''), vcs)
311
312
leftabove vnew
313
+
314
+ let undolevels = &l:undolevels
315
+ setlocal undolevels=-1
316
317
if (fenc != &enc) && has('iconv')
318
silent put =iconv(base, fenc, &enc)
319
else
@@ -319,6 +323,7 @@ function! sy#repo#diffmode(do_tab) abort
323
silent 1delete
320
324
set buftype=nofile bufhidden=wipe nomodified
321
325
let &filetype = ft
326
+ let &l:undolevels = undolevels
322
327
diffthis
328
wincmd p
329
normal! ]czt
0 commit comments