Wed 05 Apr 2017 09:52:16 PM UTC, original submission:
With current git, dynamic home sometimes doesn't work as expected when two-column characters are straddling the screen edge. (Dynamic end uses similar logic to dynamic home, but doesn't seem to have any problems as far as I can tell. Still, it may need to be double-checked.)
This bug assumes that you're running current git with one of the patches from bug #50687 applied, as it improves movement when dealing with two-column characters and makes the problem easier to reproduce. There are two variants of the problem:
Variant 1:
1. Load the attached file with the following:
nano --ignore --softwrap chinese.html
2. Press Down four times, and then Right once. This will place the cursor on the character after the right half of a character straddling the screen edge.
3. Press Home. The cursor will move to the left half of the character straddling the screen edge at the end of the previous row, instead of to the right half at the beginning of the current row (since normally nano can't place the cursor on the right half of a two-column character).
Variant 2:
1. Load the attached file with the following:
nano --ignore --softwrap chinese.html
2. Press Down four times. This will place the cursor on the right half of a character straddling the screen edge.
3. Press Home. The cursor will move to the beginning of the previous row, instead of moving to the beginning of the actual line since it started at the beginning of the current row (since normally nano can't place the cursor on the right half of a two-column character).
|