termux-app icon indicating copy to clipboard operation
termux-app copied to clipboard

Line breaks and copy issues

Open he852100 opened this issue 5 years ago • 3 comments

With a double width character wrapping, a failure occurs when only one English character can be tolerated at the end of the line.

Screenshot_20191226_234232 Screenshot_20191226_234434

Copy results will increase the space character

dndynyenethtsnydntsbtsntsbtsbstnstbstb 你就

he852100 avatar Dec 26 '19 16:12 he852100

@he852100 Can you reproduce this with ANY package from Termux repos ?

ghost avatar Dec 26 '19 16:12 ghost

Hello and thanks for reporting! I can reproduce the issue and understand it.

With | being the end of the terminal width, when we are at

abcde |

and insert a double width character such as 枝, we end up with

abcde |
枝    |

and the space after e is copied.

@he852100 Do you know of a terminal emulator which handles this well, where one could look for inspiration? I just tried in Terminal.app and iTerm2 on macOS and those seems to have the same behaviour.

fornwall avatar Dec 31 '19 00:12 fornwall