Commit 53154a74 authored by Robert Siemborski's avatar Robert Siemborski
Browse files

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
No related merge requests found
Showing with 2 additions and 1 deletion
+2 -1
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment