mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-23 07:19:15 +00:00
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.
This commit is contained in:
parent
8962d4b300
commit
e9d6c46ab5
@ -1,3 +1,8 @@
|
||||
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))))
|
||||
|
Loading…
Reference in New Issue
Block a user