Skip to content
Snippets Groups Projects
Commit 73144f04 authored by deuce's avatar deuce
Browse files

When a line is deleted via unwrap_line() also draw one line last the total

count of lines after to operation to erase on-screen leftover lines.

Fixes bug reported by DigitalMan
parent 7814bf88
Branches
Tags
No related merge requests found
......@@ -312,7 +312,7 @@ function unwrap_line(l)
}
if(old_lines!=line.length) {
/* We need to redraw everything... line(s) deleted */
for(;l<line.length;l++)
for(;l<=line.length;l++)
draw_line(l);
}
return(ret);
......@@ -1532,8 +1532,9 @@ function edit(quote_first)
line[ypos].hardcr=false;
}
}
if(!rewrap())
if(!rewrap()) {
draw_line(ypos,xpos);
}
break;
case '\x09': /* CTRL-I TAB... ToDo expand to spaces */
add_char(' ');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment