[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/diff-hl d225def: Check that diff-hl-show-hunk-diff-buff
From: |
ELPA Syncer |
Subject: |
[elpa] externals/diff-hl d225def: Check that diff-hl-show-hunk-diff-buffer-name exists first |
Date: |
Thu, 15 Jul 2021 22:57:10 -0400 (EDT) |
branch: externals/diff-hl
commit d225def4a473a16ac994124e063695ef9cef3308
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
Check that diff-hl-show-hunk-diff-buffer-name exists first
#167
---
diff-hl-show-hunk.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/diff-hl-show-hunk.el b/diff-hl-show-hunk.el
index ee047bf..6e3e63b 100644
--- a/diff-hl-show-hunk.el
+++ b/diff-hl-show-hunk.el
@@ -109,7 +109,8 @@ corresponding to the clicked line in the original buffer."
(read-only-mode -1)
(erase-buffer))
(bury-buffer diff-hl-show-hunk-buffer-name)
- (bury-buffer diff-hl-show-hunk-diff-buffer-name)
+ (when (get-buffer diff-hl-show-hunk-diff-buffer-name)
+ (bury-buffer diff-hl-show-hunk-diff-buffer-name))
(when diff-hl-show-hunk--hide-function
(let ((hidefunc diff-hl-show-hunk--hide-function))
(setq diff-hl-show-hunk--hide-function nil)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/diff-hl d225def: Check that diff-hl-show-hunk-diff-buffer-name exists first,
ELPA Syncer <=