Commit 2bb4bce8 authored by Hiroaki Otsu's avatar Hiroaki Otsu

fix error on popup-delete when char-before return nil

parent a6f582c2
......@@ -674,7 +674,8 @@ KEYMAP is a keymap that will be put on the popup contents."
(goto-char (point-max))
(dotimes (i newlines)
(if (= (char-before) ?\n)
(if (and (char-before)
(= (char-before) ?\n))
(delete-char -1)))))))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment