bugGNU nano - Bugs: bug #57993, nano can show a spurious...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #57993: nano can show a spurious "[" -- the left half of double-width character

Submitter:  Benno Schulenberg <bens>
Submitted:  Sun 15 Mar 2020 01:44:15 PM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Wed 25 Mar 2020 10:05:06 AM UTC, comment #2: 

Fixed in version 4.9.

Benno Schulenberg <bens>
Group administrator
Sun 15 Mar 2020 04:14:15 PM UTC, comment #1: 

Fixed in git, commit 2b6924ef.

Benno Schulenberg <bens>
Group administrator
Sun 15 Mar 2020 01:44:15 PM UTC, original submission:  

To reproduce, make your terminal 14 columns narrow.  Then run:

echo "下から三行目は"  >oneline
src/nano --ignore --softwrap  oneline

Note the "三" character, and the "行" after it.
Now type M-N to switch on line numbers.  See how the last two characters (目は) get pushed to the next row, but note that a "[" has appeared between the "三" and "行".  Weird.  Move the cursor right until it is on the "[".  Then switch on the mark (M-A), and move the cursor one position further to the right.  See how the "[" has disappeared, and a highlighted "行" has taken its place.


When not using line numbers, the "[" appears in the correct place: just before the edge of the screen, after any other characters.

The problem does not occur when also using --atblanks.

(Maybe it is better that "[" does not appear at all in softwrap mode, because it kind of half-duplicates a character that is shown in full at the start of the next row.)

Benno Schulenberg <bens>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-03-25 bens Open/ClosedOpen Closed
    2020-03-15 bens Severity2 - Minor 3 - Normal
        StatusNone Fixed
        Assigned toNone bens

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code