From b5cd3e2d5c330b62cd1d162fd6ad841bf2a8d32b Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Tue, 1 Mar 2022 15:08:36 -0800 Subject: [PATCH] filterANSIEscapes: Ignore BEL character GCC is not as good at music as it seems to think it is. Fixes #4546. Signed-off-by: Anders Kaseorg --- src/libutil/util.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libutil/util.cc b/src/libutil/util.cc index 88c5ae806..229bebbe6 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -1412,7 +1412,7 @@ std::string filterANSIEscapes(const std::string & s, bool filterAll, unsigned in } } - else if (*i == '\r') + else if (*i == '\r' || *i == '\a') // do nothing for now i++;