Source

aurum / ftplugin / aurumcommit.vim

The branch 'bzr-support' does not exist.
Diff from to

File ftplugin/aurumcommit.vim

 "▶1 diffcb
 function s:F.diffcb(file, bvar, hex)
     call a:bvar.findwindow()
-    call s:_r.mrun('silent edit', 'diff', a:bvar.repo, 0, 0, [a:file], {})
+    if !s:_r.mrun('silent edit', 'diff', a:bvar.repo, 0, 0, [a:file], {})
+        setlocal bufhidden=wipe
+    endif
 endfunction
 "▶1 runcommap
 function s:F.runcommap(count, action)
         call append(0, split(bvar.recallcs.description, "\n", 1))
     elseif a:action is# 'fulldiff'
         call bvar.findwindow()
-        call s:_r.mrun('silent edit', 'diff', bvar.repo, 0, 0,
-                    \                         s:F.listfiles(bvar), {})
+        if !s:_r.mrun('silent edit', 'diff', bvar.repo, 0, 0,
+                    \                        s:F.listfiles(bvar), {})
+            setlocal bufhidden=wipe
+        endif
     elseif a:action is# 'diff' || a:action is# 'vimdiff'
         let file=s:F.getfile(bvar)
         let hex=bvar.repo.functions.getworkhex(bvar.repo)