diff --git a/gdb-port/top-level-parse.py b/gdb-port/top-level-parse.py index a6c3f6ff1292decddfd5f8d58776529476b54e76..35563cadee1ad1751f914e70e35e1910946d19a5 100644 --- a/gdb-port/top-level-parse.py +++ b/gdb-port/top-level-parse.py @@ -402,7 +402,7 @@ class TopLevelParse: token_length = tokenmap_entry['end'] - tokenmap_entry['start'] start_col = max(tokenmap_entry['start'] - start, 0) end_col = min(tokenmap_entry['end'] - start, w) - if end_col < start: #TODO: better control flow here, deletion branch could be merged + if tokenmap_entry['end'] < start: #TODO: better control flow here, deletion branch could be merged del self.tokens_from_previous_chunk[index] continue charbuf_dynamic.append([' '] * w)