edit_add()
- Rename to edit_draw(), and rename parameter yval to line.
(DLR)
+ do_cursorpos()
+ - Remove unneeded assert. (DLR)
do_yesno()
- Make mouse clicks on the Yes/No/All shortcuts work properly
when the MORE_SPACE flag is set. (DLR)
size_t start_col, page_start;
char *expanded;
- assert(prompt != NULL && index <= strlen(buf));
+ assert(prompt != NULL && index <= strlen(curranswer));
start_col = strlenpt(prompt) + 1;
index = strnlenpt(curranswer, index);
* current and filebot if filebot is the last line in the
* paragraph. */
assert(par_len > 0 && openfile->current->lineno + par_len <=
- filebot->lineno + 1);
+ openfile->filebot->lineno + 1);
/* Move bot down par_len lines to the line after the last line of
* the paragraph, if there is one. */
openfile->current->data[openfile->current_x] = c;
openfile->current->next = f;
- /* Check whether totsize is correct. If it isn't, there is a bug
- * somewhere. */
- assert(openfile->current != openfile->filebot || i == openfile->totsize);
-
if (constant && disable_cursorpos) {
disable_cursorpos = FALSE;
return;