Commit e9d6c46a authored by João Távora's avatar João Távora

Fix bug #16272 when inserting newline at point-min in electric-pair-mode.

* elec-pair.el (electric-pair-post-self-insert-function): Don't
open extra newlines at beginning of buffer.
parent 8962d4b3
2013-12-28 João Távora <joaotavora@gmail.com>
* elec-pair.el (electric-pair-post-self-insert-function): Don't
open extra newlines at beginning of buffer. (Bug#16272)
2013-12-28 Eli Zaretskii <eliz@gnu.org>
* frame.el (window-system-for-display): Don't allow to create a
......
......@@ -513,7 +513,7 @@ happened."
(funcall electric-pair-open-newline-between-pairs)
electric-pair-open-newline-between-pairs)
(eq last-command-event ?\n)
(not (eobp))
(< (1+ (point-min)) (point) (point-max))
(eq (save-excursion
(skip-chars-backward "\t\s")
(char-before (1- (point))))
......
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