]> git.eshelyaron.com Git - emacs.git/commit
Recompute erc-prompt when inserting messages
authorF. Jason Park <jp@neverwas.me>
Fri, 19 May 2023 06:47:27 +0000 (23:47 -0700)
committerF. Jason Park <jp@neverwas.me>
Tue, 30 May 2023 04:42:45 +0000 (21:42 -0700)
commit4f93c52f7fd1b7c5f75a0d049e5a1015a268265a
tree7c2a3a76eb6bc5f5ed00cfcb3688a35d7a46aece
parent8bef8a55660906c143c0b3940a3587c064608f9c
Recompute erc-prompt when inserting messages

* lisp/erc/erc.el (erc--refresh-prompt): New function for redrawing
the prompt in a couple select places.
(erc-display-line-1, erc-display-msg): Replace the prompt after
inserting messages.
* test/lisp/erc/erc-tests.el (erc--refresh-prompt): New
test.  (Bug#60936)
lisp/erc/erc.el
test/lisp/erc/erc-tests.el