aboutsummaryrefslogtreecommitdiffstats
path: root/src/trees.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/trees.py')
-rw-r--r--src/trees.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/trees.py b/src/trees.py
index 851553a..938f63a 100644
--- a/src/trees.py
+++ b/src/trees.py
@@ -356,7 +356,7 @@ class Tree():
return ('read', self.select_stack[-1][0])
elif buf.endswith('R'):
return ('unread', self.select_stack[-1][0])
- elif ord('0') <= ord(buf[-1]) <= ord('9'):
+ elif (buf[-3] != '\033' or buf[-2] != '[') and (buf[-5] != '\033' or buf[-4] != '[' or buf[-2] != ';') and (ord('0') <= ord(buf[-1]) <= ord('9')):
return (buf[-1], self.select_stack[-1][0])
elif buf.endswith('\t'):
return ('back', None)