the "$" on subsequent pages. (DLR)
reset_cursor()
- Tweak for efficiency. (David Benbennick)
- update_line()
- - Move leaveok() calls here from edit_refresh(), since the
- places where they were used in edit_refresh() mainly affected
- the update_line()s. (DLR)
edit_refresh()
- Tweak for efficiency. (David Benbennick)
- - Remove the aforementioned leaveok() calls from this function.
- (DLR)
do_credits()
- Use nanosleep() instead of usleep(). The latter is only
standard under BSD, whereas the former is POSIX compliant.
if (line < 0 || line >= editwinrows)
return;
- /* Don't make the cursor jump around the screen while updating. */
- leaveok(edit, TRUE);
-
/* First, blank out the line (at a minimum) */
mvwaddstr(edit, line, 0, hblank);
mvwaddch(edit, line, 0, '$');
if (strlenpt(fileptr->data) > page_start + COLS)
mvwaddch(edit, line, COLS - 1, '$');
-
- /* Let the cursor jump around the screen again. */
- leaveok(edit, FALSE);
}
/* This function updates current, based on where current_y is;
fprintf(stderr, "edit_refresh(): edittop->lineno = %ld\n", edittop->lineno);
#endif
+ /* Don't let the cursor jump around the screen while
+ * updating. */
+ leaveok(edit, TRUE);
+
while (nlines < editwinrows) {
update_line(foo, current_x);
nlines++;
/* What the hell are we expecting to update the screen if this
* isn't here? Luck? */
wrefresh(edit);
+
+ /* Let the cursor jump around the screen again. */
+ leaveok(edit, FALSE);
}
}