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
tig incorrectly counts width of lines with multibyte characters. Let's take a look at example:
Как пуст, и вял, и ничтожен почти всякий прожитой день! Как мало следов оставляет он за собою! Как бессмысленно глупо пробежали эти часы за часами!
And it looks like this
Note that each cyrillic character is represented by 2 bytes in UTF-8. Apparently tig wraps lines to width X adding line breaks every X bytes instead actual characters. Also note portion of text in between is not visible. It seems previous line was cut in the middle of character, invisible line starts with last byte of character from previous line and it breaks its parsing.
The text was updated successfully, but these errors were encountered:
Cool! @koutcher It was funny and flattering to see that you not just used my example in test/blob/wrap-lines-test but also mentioned its actual author! 😄
Version, environment: tig 2.5.0, Arch linux
Here is an example text:
And it looks like this
Note that each cyrillic character is represented by 2 bytes in UTF-8. Apparently tig wraps lines to width X adding line breaks every X bytes instead actual characters. Also note portion of text in between is not visible. It seems previous line was cut in the middle of character, invisible line starts with last byte of character from previous line and it breaks its parsing.
The text was updated successfully, but these errors were encountered: