about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-08-25T13·44+0200
committerEelco Dolstra <edolstra@gmail.com>2017-08-25T13·59+0200
commita3015db6c388d1b62064e10bac77d4abe2a457ef (patch)
tree69cc8702702be9db3f46f204c3f4c16733568580
parent0e9ddcc306f0900fc38472a2c8b9d9aa886b279e (diff)
Typo
-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 c2bceea3d9d0..b7b32b3d384e 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;