nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit c1c818ebd5b535a7744dc71febe40b8ff3a547f8
parent d8d1e26e54aa90bc782e622e9dd84b5ac3f88213
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Sun, 14 May 2006 18:22:01 +0000

comment and formatting fixes


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3516 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
Msrc/global.c | 3+--
Msrc/nano.h | 1+
Msrc/prompt.c | 11+++++------
Msrc/winio.c | 17+++++++----------
4 files changed, 14 insertions(+), 18 deletions(-)

diff --git a/src/global.c b/src/global.c @@ -214,8 +214,7 @@ bool curses_ended = FALSE; * statusbar. */ char *homedir = NULL; - /* The user's home directory, from $HOME or - * /etc/passwd. */ + /* The user's home directory, from $HOME or /etc/passwd. */ /* Return the number of entries in the shortcut list s. */ size_t length_of_list(const shortcut *s) diff --git a/src/nano.h b/src/nano.h @@ -79,6 +79,7 @@ #endif /* CURSES_H */ #ifdef ENABLE_NLS +/* Native language support. */ #ifdef HAVE_LIBINTL_H #include <libintl.h> #endif diff --git a/src/prompt.c b/src/prompt.c @@ -28,15 +28,14 @@ #include <string.h> static char *prompt = NULL; - /* The prompt string for statusbar - * questions. */ + /* The prompt string for statusbar questions. */ static size_t statusbar_x = (size_t)-1; - /* The cursor position in answer. */ + /* The cursor position in answer. */ static size_t statusbar_pww = (size_t)-1; - /* The place we want in answer. */ + /* The place we want in answer. */ static bool reset_statusbar_x = FALSE; - /* Should we reset the cursor position - * at the statusbar prompt? */ + /* Should we reset the cursor position at the statusbar + * prompt? */ /* Read in a character, interpret it as a shortcut or toggle if * necessary, and return it. Set meta_key to TRUE if the character is a diff --git a/src/winio.c b/src/winio.c @@ -30,19 +30,16 @@ #include <ctype.h> static int *key_buffer = NULL; - /* The default keystroke buffer, - * containing all the keystrokes we have - * at a given point. */ + /* The default keystroke buffer, containing all the keystrokes + * we have at a given point. */ static size_t key_buffer_len = 0; - /* The length of the default keystroke - * buffer. */ + /* The length of the default keystroke buffer. */ static int statusblank = 0; - /* The number of keystrokes left after - * we call statusbar(), before we - * actually blank the statusbar. */ + /* The number of keystrokes left after we call statusbar(), + * before we actually blank the statusbar. */ static bool disable_cursorpos = FALSE; - /* Should we temporarily disable - * constant cursor position display? */ + /* Should we temporarily disable constant cursor position + * display? */ /* Control character compatibility: *