]> git.eshelyaron.com Git - emacs.git/commit
ansi-color: don't get stuck on \e
authorIoannis Kappas <ioannis.kappas@gmail.com>
Sun, 6 Feb 2022 22:54:07 +0000 (23:54 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 6 Feb 2022 22:54:07 +0000 (23:54 +0100)
commite9ba08be215f88868d9e8c7ef736b0eb83d6ddff
tree18a3d0a80ec4429028bd4688e6655f325e5ee474
parentbff8354ec4d63a5073c12fc531f8584ed06f0ebc
ansi-color: don't get stuck on \e

* lisp/ansi-color.el (ansi-color--control-seq-fragment-regexp): New
constant.

* test/lisp/ansi-color-tests.el
(ansi-color-incomplete-sequences-test): Test for \e that doesn't
start a valid ANSI escape sequence (bug#53808).

Code amended (and test code written) by <miha@kamnitnik.top>.  Code by
Ioannis Kappas is small enough to be

Copyright-paperwork-exempt: yes
lisp/ansi-color.el
test/lisp/ansi-color-tests.el