aboutsummaryrefslogtreecommitdiff
path: root/src/libutil
diff options
context:
space:
mode:
authorAnders Kaseorg <andersk@mit.edu>2022-03-01 15:08:36 -0800
committerAnders Kaseorg <andersk@mit.edu>2022-03-01 15:35:42 -0800
commitb5cd3e2d5c330b62cd1d162fd6ad841bf2a8d32b (patch)
tree91b08dffa7a1b211b4dbab887df4b14ac7dbe444 /src/libutil
parent9087fe0760074a8b092c4f96e02901a9cfe29865 (diff)
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 <andersk@mit.edu>
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/util.cc2
1 files changed, 1 insertions, 1 deletions
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++;