From ea3bc15111e56b18183fd1119f61facf3ae07945 Mon Sep 17 00:00:00 2001
From: pompolic <pompolic@special-circumstanc.es>
Date: Fri, 4 Nov 2022 19:16:31 +0100
Subject: [PATCH] Fix accidentally throwing out more leftover tokens than
 intended

---
 gdb-port/top-level-parse.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb-port/top-level-parse.py b/gdb-port/top-level-parse.py
index a6c3f6f..35563ca 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)
-- 
GitLab