]> git.eshelyaron.com Git - emacs.git/commit
Really fix off-by-one in erc--get-inserted-msg-bounds
authorF. Jason Park <jp@neverwas.me>
Fri, 3 Nov 2023 23:07:20 +0000 (16:07 -0700)
committerF. Jason Park <jp@neverwas.me>
Sat, 4 Nov 2023 22:36:24 +0000 (15:36 -0700)
commitfb578ddfb25371621df6e300a98a1ea1463dd06b
treecb26f5a93075a388cec9728d528b24ff95c41f5e
parent0b5e2ce7612f71365fe061b8a15648e7b4ee053f
Really fix off-by-one in erc--get-inserted-msg-bounds

* lisp/erc/erc.el (erc--get-inserted-msg-bounds): Account for
`previous-single-property-change' returning a position adjacent to
that with an actual changed value.  The prior attempt at addressing
this was insufficient.
* test/lisp/erc/erc-tests.el (erc--get-inserted-msg-bounds): New test.
; * test/lisp/erc/resources/base/local-modules/second.eld: Timeout.
; * test/lisp/erc/resources/base/local-modules/third.eld: Timeout.
lisp/erc/erc.el
test/lisp/erc/erc-tests.el
test/lisp/erc/resources/base/local-modules/second.eld
test/lisp/erc/resources/base/local-modules/third.eld