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.
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;
(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
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));
}
replace_scs_for(do_linter, do_spell);
#endif
}
-#endif
+#endif /* !DISABLE_COLOR */
const subnfunc *sctofunc(const sc *s)
{
*
* 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,
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);