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

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

[nongnu] elpa/popup 34be113 116/184: Merge pull request #78 from aki2o/f


From: ELPA Syncer
Subject: [nongnu] elpa/popup 34be113 116/184: Merge pull request #78 from aki2o/fix-popup-delete
Date: Wed, 6 Oct 2021 00:01:23 -0400 (EDT)

branch: elpa/popup
commit 34be1133ca9f64be300bb4ae8ad4dcc80bdf973b
Merge: a6f582c 2bb4bce
Author: Syohei YOSHIDA <syohex@gmail.com>
Commit: Syohei YOSHIDA <syohex@gmail.com>

    Merge pull request #78 from aki2o/fix-popup-delete
    
    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]