aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 c2bceea3d..b7b32b3d3 100644
--- a/src/libutil/util.cc
+++ b/src/libutil/util.cc
@@ -1171,7 +1171,7 @@ string filterANSIEscapes(const string & s, bool nixOnly)
}
} else {
r += c;
- if (c >= 0x40 && c != 0x7e) {
+ if (c >= 0x40 && c <= 0x7e) {
if (nixOnly && (c != 'p' && c != 'q' && c != 's' && c != 'a' && c != 'b'))
t += r;
state = stTop;