From 66e5e74374fde80452d58ce9ac991fcb232168c0 Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Wed, 16 Jun 2021 16:03:30 +0430 Subject: [PATCH] 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 --- Userland/Applications/Spreadsheet/CellSyntaxHighlighter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Applications/Spreadsheet/CellSyntaxHighlighter.cpp b/Userland/Applications/Spreadsheet/CellSyntaxHighlighter.cpp index bfdbe73c9c..533d17d108 100644 --- a/Userland/Applications/Spreadsheet/CellSyntaxHighlighter.cpp +++ b/Userland/Applications/Spreadsheet/CellSyntaxHighlighter.cpp @@ -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,