nano

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

commit 3218d8358ae81aa5b1599b4cc5d87405afe8934b
parent a3a10dfafeceba3ef99a6804894283f3aa0cecab
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon, 20 Aug 2018 19:31:23 +0200

tweaks: remove a redundant "struct" word, and replace it in comments

Diffstat:
Msrc/cut.c | 2+-
Msrc/global.c | 2+-
Msrc/nano.c | 2+-
Msrc/text.c | 2+-
4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/cut.c b/src/cut.c @@ -207,7 +207,7 @@ void do_cut_text_void(void) * was moved, blow away previous contents of the cutbuffer. */ void do_copy_text(void) { - static struct filestruct *next_contiguous_line = NULL; + static filestruct *next_contiguous_line = NULL; bool mark_is_set = (openfile->mark != NULL); /* Remember the current viewport and cursor position. */ diff --git a/src/global.c b/src/global.c @@ -1427,7 +1427,7 @@ const char *flagtostr(int flag) #ifdef ENABLE_NANORC /* Interpret a function string given in the rc file, and return a - * shortcut struct with the corresponding function filled in. */ + * shortcut record with the corresponding function filled in. */ sc *strtosc(const char *input) { sc *s = nmalloc(sizeof(sc)); diff --git a/src/nano.c b/src/nano.c @@ -476,7 +476,7 @@ void ingraft_buffer(filestruct *somebuffer) #endif /* If we pasted onto the first line of the edit window, the corresponding - * struct has been freed, so... point at the start of the copied text. */ + * record has been freed, so... point at the start of the copied text. */ if (edittop_inside) openfile->edittop = openfile->fileage; diff --git a/src/text.c b/src/text.c @@ -1290,7 +1290,7 @@ void discard_until(const undo *thisitem, openfilestruct *thefile, bool keep) thefile->last_saved = (undo *)0xbeeb; } -/* Add a new undo struct of the given type to the top of the current pile. */ +/* Add a new undo item of the given type to the top of the current pile. */ void add_undo(undo_type action) { undo *u = openfile->current_undo;