mirror of git://git.sv.gnu.org/nano.git
fix compilation with --enable-debug, and remove unneeded assert
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3234 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
a685468a18
commit
24777c0740
|
@ -245,6 +245,8 @@ CVS code -
|
|||
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)
|
||||
|
|
|
@ -779,7 +779,7 @@ void update_statusbar_line(const char *curranswer, size_t index)
|
|||
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);
|
||||
|
|
|
@ -1019,7 +1019,7 @@ void backup_lines(filestruct *first_line, size_t par_len)
|
|||
* 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. */
|
||||
|
|
|
@ -2901,10 +2901,6 @@ void do_cursorpos(bool constant)
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue