Multiline Fl_Input: fix move up/down in non ASCII text

This commit is contained in:
ManoloFLTK 2023-04-26 08:25:32 +02:00
parent 58bd71f26d
commit e82e709bcc

View File

@ -221,10 +221,10 @@ double Fl_Input_::expandpos(
chr += 7-(chr%8);
} else n += 2;
} else {
n++;
n += fl_utf8len1(*p);
}
chr += fl_utf8len((char)p[0]) >= 1;
p++;
p += fl_utf8len1(*p);
}
if (returnn) *returnn = n;
return fl_width(buf, n);