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).
Reproduction recipe:
printf "two words\n second line\n" >words
src/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).