diff --git a/gdb-port/top-level-parse.py b/gdb-port/top-level-parse.py index 8951743fed722782826a5fbfced854636fd3f1ac..f46714db6827a2386b68556681a5923ebc964389 100644 --- a/gdb-port/top-level-parse.py +++ b/gdb-port/top-level-parse.py @@ -469,7 +469,7 @@ class TopLevelParse: tokenmap_entry = self.input_token_map[int(token.address)] token_length = tokenmap_entry['end'] - tokenmap_entry['start'] # TODO: save tokenmap_values_sorted[i] start_col = max(tokenmap_entry['start'] - start, 0) - end_col = min(tokenmap_entry['end'] - start, w-1) + end_col = min(tokenmap_entry['end'] - start, w) charbuf_dynamic.append([' '] * w) charbuf_dynamic[current_row][start_col:end_col] = ['X'] * min(token_length, end_col-start_col) hparseresult_addr = tokenmap_entry['hparseresult']