diff --git a/ChangeLog b/ChangeLog index 6e9ece417d3264b7b5b9564c9c60af6798782a99..9e3515edb311655bb2071cf6dd0d4336b7c27e71 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 2016-01-13 Benno Schulenberg <bensberg@justemail.net> * src/files.c (save_poshistory): Reduce the indentation. + * src/*.c: Adjust a few comments and rewrap some lines. 2016-01-12 Benno Schulenberg <bensberg@justemail.net> * NEWS: Fix some typos and whitespace, and normalize the dates. diff --git a/src/cut.c b/src/cut.c index c7dffbf70ec6c566a8feae94122c0a2f9e06d8cb..de90e247915050456062fe293d05210e69d180fa 100644 --- a/src/cut.c +++ b/src/cut.c @@ -28,10 +28,8 @@ static bool keep_cutbuffer = FALSE; /* Should we keep the contents of the cutbuffer? */ - /* Pointer to the end of the cutbuffer. */ -/* Indicate that we should no longer keep the contents of the - * cutbuffer. */ +/* Indicate that we should no longer keep the contents of the cutbuffer. */ void cutbuffer_reset(void) { keep_cutbuffer = FALSE; diff --git a/src/files.c b/src/files.c index a5c5ed0ff2e54322c32085149fee9c07ebfcc3b4..2daeaf91e9869a5a1b60cfac93270fda3a0a81b3 100644 --- a/src/files.c +++ b/src/files.c @@ -2259,9 +2259,8 @@ int do_writeout(bool exiting) (append == APPEND) ? _("File Name to Append to") : _("File Name to Write"); - /* If we're using restricted mode, the filename isn't blank, - * and we're at the "Write File" prompt, disable tab - * completion. */ + /* If we're using restricted mode, and the filename isn't blank, + * disable tab completion. */ i = do_prompt(!ISSET(RESTRICTED) || openfile->filename[0] == '\0', #ifndef DISABLE_TABCOMP @@ -3208,7 +3207,7 @@ void load_poshistory(void) if (hist == NULL) { if (errno != ENOENT) { - /* When reading failed, don't save history when we quit. */ + /* When reading failed, don't save history when we quit. */ UNSET(POS_HISTORY); history_error(N_("Error reading %s: %s"), poshist, strerror(errno)); } diff --git a/src/global.c b/src/global.c index 748607297b42f78af664ffbdd6d8b51fa8b632ce..f7b904bb3353d9206d3fea4657ad1e451f6e2ce2 100644 --- a/src/global.c +++ b/src/global.c @@ -1260,7 +1260,7 @@ void set_spell_shortcuts(void) replace_scs_for(do_linter, do_spell); #endif } -#endif +#endif /* !DISABLE_COLOR */ const subnfunc *sctofunc(const sc *s) { diff --git a/src/prompt.c b/src/prompt.c index dbe84546ee3251cdf76d7a3c6b6549109d5f7c0f..7cce2869e06dbd15f0cd4c9e19c37de6b17eebe1 100644 --- a/src/prompt.c +++ b/src/prompt.c @@ -955,8 +955,7 @@ functionptrtype get_prompt_string(int *actual, bool allow_tabs, * * The allow_tabs parameter indicates whether we should allow tabs to be * interpreted. The allow_files parameter indicates whether we should - * allow all files (as opposed to just directories) to be tab - * completed. */ + * allow all files (as opposed to just directories) to be tab completed. */ int do_prompt(bool allow_tabs, #ifndef DISABLE_TABCOMP bool allow_files, diff --git a/src/search.c b/src/search.c index 0556d81e77f7a0bc0fa9c053d795e8d99a3e0dc8..c1f84fc13315cc9b853d8711e1e25df1de7213d9 100644 --- a/src/search.c +++ b/src/search.c @@ -1004,8 +1004,8 @@ void do_gotolinecolumn(ssize_t line, ssize_t column, bool use_answer, column = openfile->placewewant + 1; } - for (openfile->current = openfile->fileage; - openfile->current != openfile->filebot && line > 1; line--) + for (openfile->current = openfile->fileage; line > 1 && + openfile->current != openfile->filebot; line--) openfile->current = openfile->current->next; openfile->current_x = actual_x(openfile->current->data, column - 1);