branch: elpa/popup commit 34be1133ca9f64be300bb4ae8ad4dcc80bdf973b Merge: a6f582c 2bb4bce Author: Syohei YOSHIDA <syo...@gmail.com> Commit: Syohei YOSHIDA <syo...@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)