mdmintz / pdbp

pdbp (Pdb+): A drop-in replacement for pdb and pdbpp. To replace "pdb", add "import pdbp" to an "__init__.py" file.
Other
76 stars 2 forks source link

Some lines with special characters get unexpectedly truncated #46

Closed mdmintz closed 1 year ago

mdmintz commented 1 year ago

Some lines with special characters get unexpectedly truncated

Eg: (See lines 15, 19, 22, 23 below. Compare with the following image.)

Screenshot

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:

Screenshot

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:

Screenshot

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.

mdmintz commented 1 year ago

Resolved in 1.4.3 - https://github.com/mdmintz/pdbp/releases/tag/v1.4.3