nano

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

commit 53154a746877c1e54388b59c36f358204235a795
parent 0223d6fba43f73ac029d4d8d4f5dbf2144017d59
Author: Robert Siemborski <rjs3@andrew.cmu.edu>
Date:   Sun, 18 Jun 2000 00:11:03 +0000

fixed bug where bottom line would not be redrawn if update_line was called
with NULL


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

Diffstat:
Mwinio.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/winio.c b/winio.c @@ -709,13 +709,14 @@ void update_line(filestruct * fileptr, int index) char *realdata, *tmp; int i,pos,len,page; + if(!fileptr) return; + /* First, blank out the line (at a minimum) */ for (filetmp = edittop; filetmp != fileptr && filetmp != editbot; filetmp = filetmp->next) line++; mvwaddstr(edit, line, 0, hblank); - if(!fileptr) return; /* Next, convert all the tabs to spaces so everything else is easy */ index = xpt(fileptr, index);