Commits

ZyX_I committed 9ed6755

Remove “buffer does not exist” messages

They are shown if buffer replaced by diff was deleted after closediffbuf was
called.

  • Participants
  • Parent commits 3d981bd

Comments (0)

Files changed (1)

autoload/aurum/commit.vim

             let cmds+=['execute bufwinnr('.a:dbuf.') "wincmd w"']
             call insert(switchcmds, 'wincmd p')
             if a:prevbuf && bufexists(a:prevbuf)
-                let cmds+=['buffer '.a:prevbuf]
+                let cmds += ['if bufexists('.a:prevbuf.')',
+                            \   'buffer '.a:prevbuf,
+                            \'else',
+                            \   'bnext',
+                            \'endif']
             else
                 let cmds+=['bnext']
             endif