do_verbatim_input(); changes to do_char(). (DLR) Additional
minor tweaks to do_char() by David Benbennick.
- Clarify the description of the --rebinddelete option. (DLR)
+ - Miscellaneous comment tweaks, including copyright year
+ updates. (DLR)
- cut.c:
- Overhaul to increase efficiency and add various cleanups.
Changes to add_to_cutbuffer(), cut_marked_segment(), and
/**************************************************************************
* color.c *
* *
- * Copyright (C) 1999-2003 Chris Allegretta *
+ * Copyright (C) 1999-2004 Chris Allegretta *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2, or (at your option) *
/**************************************************************************
* cut.c *
* *
- * Copyright (C) 1999-2003 Chris Allegretta *
+ * Copyright (C) 1999-2004 Chris Allegretta *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2, or (at your option) *
* the first character after what was cut. We do not do any screen
* updates.
*
- * Note cutbuffer might not be NULL if "cut to end" is used. */
+ * Note cutbuffer might not be NULL if cut to end is used. */
void cut_marked_segment(void)
{
filestruct *top;
/**************************************************************************
* files.c *
* *
- * Copyright (C) 1999-2003 Chris Allegretta *
+ * Copyright (C) 1999-2004 Chris Allegretta *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2, or (at your option) *
static int fileformat = 0; /* 0 = *nix, 1 = DOS, 2 = Mac */
#endif
-/* Load file into edit buffer - takes data from file struct. */
+/* Load file into edit buffer -- takes data from file struct. */
void load_file(int update)
{
current = fileage;
return st;
}
-/* Our sort routine for file listings - sort directories before
+/* Our sort routine for file listings -- sort directories before
* files, and then alphabetically. */
int diralphasort(const void *va, const void *vb)
{
/**************************************************************************
* global.c *
* *
- * Copyright (C) 1999-2003 Chris Allegretta *
+ * Copyright (C) 1999-2004 Chris Allegretta *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2, or (at your option) *
/* More stuff for the marker select */
#ifndef NANO_SMALL
-filestruct *mark_beginbuf; /* the begin marker buffer */
+filestruct *mark_beginbuf; /* The begin marker buffer */
int mark_beginx; /* X value in the string to start */
#endif
/**************************************************************************
* move.c *
* *
- * Copyright (C) 1999-2003 Chris Allegretta *
+ * Copyright (C) 1999-2004 Chris Allegretta *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2, or (at your option) *
current_x = actual_x(current->data, placewewant);
if (current_y > 0) {
update_line(current->next, 0);
- /* It was necessary to change current first, so the mark
- * display will change! */
+ /* It was necessary to change current first, so that the
+ * mark display will change! */
update_line(current, current_x);
} else
#ifndef NANO_SMALL
/**************************************************************************
* nano.c *
* *
- * Copyright (C) 1999-2003 Chris Allegretta *
+ * Copyright (C) 1999-2004 Chris Allegretta *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2, or (at your option) *
statusbar(_("Key illegal in VIEW mode"));
}
-/* Initialize global variables - no better way for now. If
+/* Initialize global variables -- no better way for now. If
* save_cutbuffer is nonzero, don't set cutbuffer to NULL. */
void global_init(int save_cutbuffer)
{
/**************************************************************************
* nano.h *
* *
- * Copyright (C) 1999-2003 Chris Allegretta *
+ * Copyright (C) 1999-2004 Chris Allegretta *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2, or (at your option) *
int val; /* Sequence to toggle the key. Should only need
* one. */
const char *desc; /* Description for when toggle is, uh, toggled,
- e.g. "Pico Messages"; we'll append Enabled or
- Disabled. */
+ * e.g. "Cut to end"; we'll append Enabled or
+ * Disabled. */
int flag; /* What flag actually gets toggled. */
struct toggle *next;
} toggle;
/**************************************************************************
* proto.h *
* *
- * Copyright (C) 1999-2003 Chris Allegretta *
+ * Copyright (C) 1999-2004 Chris Allegretta *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2, or (at your option) *
* *
**************************************************************************/
-/* Externs */
+/* Externs. */
#include <sys/stat.h>
extern int curses_ended;
-/* Functions we want available */
+/* Functions we want available. */
/* Public functions in color.c */
#ifdef ENABLE_COLOR
/**************************************************************************
* rcfile.c *
* *
- * Copyright (C) 1999-2003 Chris Allegretta *
+ * Copyright (C) 1999-2004 Chris Allegretta *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2, or (at your option) *
if (*ptr == '\0')
return NULL;
- /* Null terminate and advance ptr */
+ /* Null terminate and advance ptr. */
*ptr++ = '\0';
while (*ptr == ' ' || *ptr == '\t')
/**************************************************************************
* search.c *
* *
- * Copyright (C) 2000-2003 Chris Allegretta *
+ * Copyright (C) 2000-2004 Chris Allegretta *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2, or (at your option) *
/**************************************************************************
* utils.c *
* *
- * Copyright (C) 1999-2003 Chris Allegretta *
+ * Copyright (C) 1999-2004 Chris Allegretta *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2, or (at your option) *
/**************************************************************************
* winio.c *
* *
- * Copyright (C) 1999-2003 Chris Allegretta *
+ * Copyright (C) 1999-2004 Chris Allegretta *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2, or (at your option) *