Erase buffer before burying it, so that we erase the right one.

This commit is contained in:
Marius Vollmer 2008-08-05 00:06:56 +03:00
parent 0450e43221
commit 9d5a94d22e

View file

@ -372,9 +372,9 @@
(defun gits-log-edit-commit ()
(interactive)
(write-region (point-min) (point-max) ".git/gits-log")
(erase-buffer)
(gits-run "git-commit" "-F" ".git/gits-log")
(bury-buffer)
(erase-buffer)
(when gits-pre-log-edit-window-configuration
(set-window-configuration gits-pre-log-edit-window-configuration)
(setq gits-pre-log-edit-window-configuration nil)))