Text Editor: Line number highlight follow selection

Change the current behavior of line number highlighting to follow the
current selected line text->sell, not the current line text->curl.
This commit is contained in:
Matheus Santos 2021-11-30 09:18:41 +11:00 committed by Campbell Barton
parent ac447ba1a3
commit da279927b1
1 changed files with 1 additions and 1 deletions

View File

@ -1671,7 +1671,7 @@ void draw_text_main(SpaceText *st, ARegion *region)
if (st->showlinenrs && !wrap_skip) {
/* Draw line number. */
UI_FontThemeColor(tdc.font_id, (tmp == text->curl) ? TH_HILITE : TH_LINENUMBERS);
UI_FontThemeColor(tdc.font_id, (tmp == text->sell) ? TH_HILITE : TH_LINENUMBERS);
BLI_snprintf(linenr,
sizeof(linenr),
"%*d",