]> git.eshelyaron.com Git - emacs.git/commit
Stop abbrev-prefix-mark from adding extra newline (Bug#25767)
authorAllen Li <vianchielfaura@gmail.com>
Thu, 2 Mar 2017 12:56:53 +0000 (07:56 -0500)
committerNoam Postavsky <npostavs@gmail.com>
Fri, 3 Mar 2017 00:01:18 +0000 (19:01 -0500)
commitc733d9169ce44f5600d41cf0e67e021371954c8e
treea6b7f9db31b33f4f8bbdbdc5864cc2340abbe0e9
parent6a9ba271a956127e566192b33fc811e802d2d475
Stop abbrev-prefix-mark from adding extra newline (Bug#25767)

`abbrev--before-point' does not adjust `pos' to account for when it
deletes the "-" left by abbrev-prefix-mark.  Therefore, when
`abbrev-before-point' goes to restore point, it moves point one
character too far forward.

* lisp/abbrev.el (abbrev--before-point): Adjust pos when deleting "-".
lisp/abbrev.el