emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/popup 2bb4bce 115/184: fix error on popup-delete when char


From: ELPA Syncer
Subject: [nongnu] elpa/popup 2bb4bce 115/184: fix error on popup-delete when char-before return nil
Date: Wed, 6 Oct 2021 00:01:23 -0400 (EDT)

branch: elpa/popup
commit 2bb4bce820b4ca700f1b1d91bc8092e6e71404c4
Author: Hiroaki Otsu <ootsuhiroaki@gmail.com>
Commit: Hiroaki Otsu <ootsuhiroaki@gmail.com>

    fix error on popup-delete when char-before return nil
---
 popup.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/popup.el b/popup.el
index c79b7ff..80ac629 100644
--- a/popup.el
+++ b/popup.el
@@ -674,7 +674,8 @@ KEYMAP is a keymap that will be put on the popup contents."
         (popup-save-buffer-state
           (goto-char (point-max))
           (dotimes (i newlines)
-            (if (= (char-before) ?\n)
+            (if (and (char-before)
+                     (= (char-before) ?\n))
                 (delete-char -1)))))))
   nil)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]