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:
Ali Mohammad Pur 2021-06-16 16:03:30 +04:30 committed by Ali Mohammad Pur
parent 0c9a505ad1
commit 66e5e74374

View file

@ -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,