nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Auto-indent and undo causes crashes


From: Liu Hao
Subject: Auto-indent and undo causes crashes
Date: Fri, 3 Apr 2020 01:04:26 +0800
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1

Gentle Benno,

It looks like 1961c052c85394d1dfb5d2d98d31f154757c8d08 introduced a bug
that causes nano to crash, as follows:

0) Run `nano -Ii`.
1) Type `      a`. Leading spaces are intentional.
2) Press <Left>. This places the cursor just preceding `a`.
3) Press <Enter>. This inserts a blank line before it.
4) Press M-U. This is expected to undo the insertion, but please
   note that leading spaces are gone now.
5) Press M-U once more. This causes nano to crash. Error messages
   vary from SIGSEGV, SIGBUS to 'Nano is out of memory!'.

Hope it helps.

-- 
Best regards,
LH_Mouse

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]