nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit a535cecd770de1ed87613eb6497a19d7504d4f13
parent d233e7e24042eaa009a2c12e422ba2075568d1db
Author: Chris Allegretta <chrisa@asty.org>
Date:   Tue, 27 Oct 2009 04:09:27 +0000

2009-10-27 Chris Allegretta <chrisa@asty.org>
        * browser.c (browser_init): Set column width to something sane when 
          initializing in a directory with no file entries.  Fixes Savannah
          bug 24163 found (and initial patch) by Paul Wise.  



git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4414 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
MChangeLog | 5+++++
Msrc/browser.c | 4++--
2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,8 @@ +2009-10-27 Chris Allegretta <chrisa@asty.org> + * browser.c (browser_init): Set column width to something sane when + initializing in a directory with no file entries. Fixes Savannah + bug 24163 found (and initial patch) by Paul Wise. + 2009-09-15 Chris Allegretta <chrisa@asty.org> * winio.c: Clean up some unused variables from the soft wrapping code. diff --git a/src/browser.c b/src/browser.c @@ -534,9 +534,9 @@ void browser_init(const char *path, DIR *dir) } /* If width isn't initialized yet, and we've taken up only one line, - * it means that width is equal to (COLS % longest). */ + * it means that width is equal to longest. */ if (width == 0) - width = COLS % longest; + width = longest; } /* Determine the shortcut key corresponding to the values of kbinput