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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user