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.
This commit is contained in:
parent
0b4da966f9
commit
87c76ddaff
Notes:
blender-bot
2023-02-14 10:08:23 +01:00
Referenced by issue #41657, Text Editor highlight bug when a very long line scrolls
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue