Commit e9048883 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

in renumber(), remove invalid assert

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3396 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 5 additions and 2 deletions
+5 -2
...@@ -66,7 +66,7 @@ CVS code - ...@@ -66,7 +66,7 @@ CVS code -
prepending fails. (DLR) prepending fails. (DLR)
- Simplify the routine for closing the file just before we - Simplify the routine for closing the file just before we
indicate success on the statusbar. (DLR) indicate success on the statusbar. (DLR)
global.c: - global.c:
shortcut_init() shortcut_init()
- Change the cursor position display help text to use "display" - Change the cursor position display help text to use "display"
instead of "show", for consistency. (DLR) instead of "show", for consistency. (DLR)
...@@ -76,6 +76,9 @@ CVS code - ...@@ -76,6 +76,9 @@ CVS code -
- In the global toggle list, move the "Constant cursor position - In the global toggle list, move the "Constant cursor position
display" toggle up to after the "Use more space for editing" display" toggle up to after the "Use more space for editing"
toggle, for consistency. (DLR) toggle, for consistency. (DLR)
- nano.c:
renumber()
- Remove invalid assert. (DLR)
- rcfile.c: - rcfile.c:
parse_argument() parse_argument()
- Rename variable ptr_bak to ptr_save, for consistency. (DLR) - Rename variable ptr_bak to ptr_save, for consistency. (DLR)
......
...@@ -163,7 +163,7 @@ void renumber(filestruct *fileptr) ...@@ -163,7 +163,7 @@ void renumber(filestruct *fileptr)
{ {
ssize_t line; ssize_t line;
assert(fileptr != NULL && fileptr->prev != NULL); assert(fileptr != NULL);
line = (fileptr->prev == NULL) ? 0 : fileptr->prev->lineno; line = (fileptr->prev == NULL) ? 0 : fileptr->prev->lineno;
......
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