nano crashes when resizing terminal

Bug #1522598 reported by Exeleration-G
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nano (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

See video here: https://vid.me/5ksi

Whenever I resize the terminal that nano is running in to a very small size, it will crash.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: nano 2.2.6-1ubuntu1
ProcVersionSignature: Ubuntu 3.19.0-37.42~14.04.1-generic 3.19.8-ckt9
Uname: Linux 3.19.0-37-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.19
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Dec 3 22:57:39 2015
InstallationDate: Installed on 2015-11-09 (24 days ago)
InstallationMedia: Ubuntu 14.04.3 LTS "Trusty Tahr" - Beta amd64 (20150805)
SourcePackage: nano
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Exeleration-G (exeleration-g) wrote :
Revision history for this message
Benno Schulenberg (bennoschulenberg) wrote :

Thanks for the report. This bug has been fixed in nano-2.3.3 and newer.

Revision history for this message
Benno Schulenberg (bennoschulenberg) wrote :

It is fixed in Wily and Xenial.

Changed in nano (Ubuntu):
status: New → Fix Committed
Changed in nano (Ubuntu):
status: Fix Committed → Confirmed
Revision history for this message
Benno Schulenberg (bennoschulenberg) wrote :

In fact, it isn't fixed. It just happened that on my two machines I use VTE-based terminals, and somehow they don't allow the window to be made smaller than four columns. But xterm allows reducing the window to just one column -- and with anything less than four columns, nano goes down.

Nano goes down deliberately when the window gets narrower than four columns, but... I don't think it should do that. No other console editor does that. Vim and joe and Emacs all stay alive even in a one-column terminal. So I think nano should do the same. Emacs stops outputting anything to the screen when the terminal is narrower than six columns (probably because by then things are entirely unreadable). Nano could do something similar, also because it is an easy fix: simply skip all display activity when COLS < 4.

Revision history for this message
Benno Schulenberg (bennoschulenberg) wrote :

The problem has finally been fixed in nano-2.7.0. Thanks for reporting, and for your patience.

Changed in nano (Ubuntu):
status: Confirmed → Fix Committed
Changed in nano (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.