mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 05:48:12 +00:00
Spreadsheet: Remove the offset used for exception TextRanges
After yet another rewrite of how GUI::TextEditor interprets text ranges this was broken yet again :P
This commit is contained in:
parent
0c9a505ad1
commit
66e5e74374
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ void CellSyntaxHighlighter::rehighlight(const Palette& palette)
|
|||
if (m_cell && m_cell->exception()) {
|
||||
auto& traceback = m_cell->exception()->traceback();
|
||||
auto& range = traceback.first().source_range;
|
||||
GUI::TextRange text_range { { range.start.line - 1, range.start.column }, { range.end.line - 1, range.end.column - 1 } };
|
||||
GUI::TextRange text_range { { range.start.line - 1, range.start.column }, { range.end.line - 1, range.end.column } };
|
||||
m_client->spans().prepend(
|
||||
GUI::TextDocumentSpan {
|
||||
text_range,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue