Commit: 87c76ddaffc6dfebf0b85f8ec147b4ede9552a90
Author: Bastien Montagne
Date:   Sun Aug 31 16:06:30 2014 +0200
Branches: master
https://developer.blender.org/rB87c76ddaffc6dfebf0b85f8ec147b4ede9552a90

Fix T41657: Text Editor highlight bug when a very long line scrolls

Based on patch by randon (Dun Liang), but no need to recompute lengths here, we 
already have the info.

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

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 6ca6b2a..95802be 100644
--- a/source/blender/editors/space_text/text_draw.c
+++ b/source/blender/editors/space_text/text_draw.c
@@ -397,7 +397,8 @@ static int text_draw_wrapped(SpaceText *st, const char 
*str, int x, int y, int w
                        /* skip hidden part of line */
                        if (skip) {
                                skip--;
-                               fstart = fpos; mstart = mend;
+                               fstart = fpos = end;
+                               mstart = mend;
                                mend = txt_utf8_forward_columns(str + mend, 
max, &padding) - str;
                                end = (wrap += max - padding);
                                continue;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to