Some lines with special characters get unexpectedly truncated
Eg: (See lines 15, 19, 22, 23 below. Compare with the following image.)
This is happening because the line width is greater than the line length (special characters such as Chinese characters can have a width of 2 per char). This is causing an incorrect calculation in line width.
Once fixed, this is how that code block should look:
Note that in non-truncation mode, if a line is longer than the width of the window, it should wrap around to the next line.
Here's how it should look when the screen width is at least as long as the longest line:
Note that the images above are using non-truncation mode (trun to toggle). In regular truncation mode, long lines are expected to get truncated to the width of the window.
Some lines with special characters get unexpectedly truncated
Eg: (See lines 15, 19, 22, 23 below. Compare with the following image.)
This is happening because the line width is greater than the line length (special characters such as Chinese characters can have a width of 2 per char). This is causing an incorrect calculation in line width.
Once fixed, this is how that code block should look:
Note that in non-truncation mode, if a line is longer than the width of the window, it should wrap around to the next line.
Here's how it should look when the screen width is at least as long as the longest line:
Note that the images above are using non-truncation mode (
trun
to toggle). In regular truncation mode, long lines are expected to get truncated to the width of the window.