mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-06 02:55:49 +03: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
Notes:
sideshowbarker
2024-07-18 12:09:36 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/66e5e74374f Pull-request: https://github.com/SerenityOS/serenity/pull/8091 Issue: https://github.com/SerenityOS/serenity/issues/4277
@ -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…
Reference in New Issue
Block a user