about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--gitsum.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/gitsum.el b/gitsum.el
index d7becda..54ed03b 100644
--- a/gitsum.el
+++ b/gitsum.el
@@ -127,7 +127,8 @@ A numeric argument serves as a repeat count."
 (defun gitsum-kill-buffer ()
   "Kill the current buffer if it has no manual changes."
   (interactive)
-  (unless (buffer-modified-p)
+  (if (buffer-modified-p)
+      (message "Patch was modified, use C-x k to kill.")
     (kill-buffer nil)))
 
 (defun gitsum-switch-to-git-status ()