[Bug 1998592] [NEW] in specific situations, nano can eat characters

Benno Schulenberg 1998592 at bugs.launchpad.net
Fri Dec 2 11:24:40 UTC 2022


Public bug reported:

Reproduction recipe:

    printf "two words\n second line\n"  >words

    nano --ignore --auto --break  +,2 words

Then press Enter.  See how "t" from the first word has *disappeared*.
This is wrong.  And what is worse: M-U does not bring the eaten letter
back.

Attached patch has been applied upstream to fix the issue.  Please
consider applying it to nano-6.2 in Jammy (22.04), and maybe also to
nano-4.8 in Focal (20.04).

** Affects: nano (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: patch-accepted-upstream

** Attachment added: "prevent <Enter> from eating non-blanks"
   https://bugs.launchpad.net/bugs/1998592/+attachment/5633931/+files/0001-text-upon-Enter-eat-only-lefthand-blanks-not-any-oth.patch

** Description changed:

  Reproduction recipe:
  
-     printf "two words\n  second line\n"  >words
+     printf "two words\n  second line\n"  >words
  
-     src/nano --ignore --auto --break  +,3 words
+     nano --ignore --auto --break  +,3 words
  
  Then press Enter.  See how "tw" from the first word has *disappeared*.
  This is wrong.  And what is worse: M-U does not bring the eaten letters
  back.
  
  Attached patch has been applied upstream to fix the issue.  Please
  consider applying it to nano-6.2 in Jammy (22.04), and maybe also to
  nano-4.8 in Focal (20.04).

** Description changed:

  Reproduction recipe:
  
-     printf "two words\n  second line\n"  >words
+     printf "two words\n second line\n"  >words
  
-     nano --ignore --auto --break  +,3 words
+     nano --ignore --auto --break  +,2 words
  
- Then press Enter.  See how "tw" from the first word has *disappeared*.
- This is wrong.  And what is worse: M-U does not bring the eaten letters
+ Then press Enter.  See how "t" from the first word has *disappeared*.  This is wrong.  And what is worse: M-U does not bring the eaten letter
  back.
  
  Attached patch has been applied upstream to fix the issue.  Please
  consider applying it to nano-6.2 in Jammy (22.04), and maybe also to
  nano-4.8 in Focal (20.04).

** Description changed:

  Reproduction recipe:
  
      printf "two words\n second line\n"  >words
  
      nano --ignore --auto --break  +,2 words
  
- Then press Enter.  See how "t" from the first word has *disappeared*.  This is wrong.  And what is worse: M-U does not bring the eaten letter
+ Then press Enter.  See how "t" from the first word has *disappeared*.
+ This is wrong.  And what is worse: M-U does not bring the eaten letter
  back.
  
  Attached patch has been applied upstream to fix the issue.  Please
  consider applying it to nano-6.2 in Jammy (22.04), and maybe also to
  nano-4.8 in Focal (20.04).

** Bug watch added: GNU Savannah Bug Tracker #63407
   http://savannah.gnu.org/bugs/?63407

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to nano in Ubuntu.
https://bugs.launchpad.net/bugs/1998592

Title:
  in specific situations, nano can eat characters

Status in nano package in Ubuntu:
  New

Bug description:
  Reproduction recipe:

      printf "two words\n second line\n"  >words

      nano --ignore --auto --break  +,2 words

  Then press Enter.  See how "t" from the first word has *disappeared*.
  This is wrong.  And what is worse: M-U does not bring the eaten letter
  back.

  Attached patch has been applied upstream to fix the issue.  Please
  consider applying it to nano-6.2 in Jammy (22.04), and maybe also to
  nano-4.8 in Focal (20.04).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nano/+bug/1998592/+subscriptions




More information about the foundations-bugs mailing list