Commit: da279927b1ea6d1d7ee2272bd1188d10d443f12b
Author: Matheus Santos
Date:   Tue Nov 30 09:18:41 2021 +1100
Branches: master
https://developer.blender.org/rBda279927b1ea6d1d7ee2272bd1188d10d443f12b

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.

===================================================================

M       source/blender/editors/space_text/text_draw.c

===================================================================

diff --git a/source/blender/editors/space_text/text_draw.c 
b/source/blender/editors/space_text/text_draw.c
index f8d16e396d4..589a8859eeb 100644
--- a/source/blender/editors/space_text/text_draw.c
+++ b/source/blender/editors/space_text/text_draw.c
@@ -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",

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to