You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if you type something like "ababababababa...." into a multiline textbox, when it wraps onto a new line, you'll find that one letter is missing (for instance previous line ends in 'b' and new one starts in 'b' as well)
EDIT: bleh, accidentally opened this in my alt account. --@mniip
The text was updated successfully, but these errors were encountered:
enable colors, fix wordwrap, fix cursor being crazy about real and imaginary newlines, fix \x01 in console output, fix high cpu draw from transparent panel, add colors to console history
So I was thinking about it. My current idea is, when wordwrapping a string produce a vector of offsets into the string, at which the substrings start. The selection markers and the cursor position then will be ui::Points where Y would be the line.
For instance the string "lorem ipsum dolor\nsit amet" would wrap into {"lorem ipsum ", "dolor", "sit amet"}, i.e {0, 12, 18}, and for instance if cursor is at line 1, position 4 ((1, 4)), it would map to 12(start of 1st line) + 4(offset into the line) in the string, i.e "lorem ipsum dolo|r\nsit amet"
if you type something like "ababababababa...." into a multiline textbox, when it wraps onto a new line, you'll find that one letter is missing (for instance previous line ends in 'b' and new one starts in 'b' as well)
EDIT: bleh, accidentally opened this in my alt account. --@mniip
The text was updated successfully, but these errors were encountered: