diff --git a/NEWS b/NEWS index 0147fa67..676c9115 100644 --- a/NEWS +++ b/NEWS @@ -1677,7 +1677,7 @@ allow multiple syntax highlighting types, and a new -Y, --syntax flag to set a specific one if there's no filename regex to match it against (i.e. w/mutt). The - ^space and M-space keys will now show up in the help + ^Space and M-Space keys will now show up in the help menu, which itself has been tweaked a bit, and many more configure options should now cooperate (like the odd pairing of --enable-tiny and --enable-multibuffer). The diff --git a/src/files.c b/src/files.c index d75a5733..71591cd2 100644 --- a/src/files.c +++ b/src/files.c @@ -2300,7 +2300,7 @@ void do_writeout(void) close_and_go(); } -/* If it has a name, write the current buffer to disk without prompting. */ +/* Write the current buffer to disk without prompting (if it has a name). */ void do_savefile(void) { if (write_it_out(FALSE, FALSE) == 2) diff --git a/src/rcfile.c b/src/rcfile.c index 34fe8ec8..246a34b6 100644 --- a/src/rcfile.c +++ b/src/rcfile.c @@ -964,6 +964,7 @@ void parse_one_include(char *file, syntaxtype *syntax) extra = extra->next; } + /* Indicate that this syntax has been loaded. */ free(syntax->filename); syntax->filename = NULL; diff --git a/src/text.c b/src/text.c index feb5abff..0bc0c99e 100644 --- a/src/text.c +++ b/src/text.c @@ -2684,12 +2684,12 @@ void do_linter(void) /* Block resizing signals while reading from the pipe. */ block_sigwinch(TRUE); - /* Read in the returned syntax errors. */ totalread = 0; buffersize = pipesize + 1; lintings = nmalloc(buffersize); pointer = lintings; + /* Read in the returned syntax errors. */ while ((bytesread = read(lint_fd[0], pointer, pipesize)) > 0) { totalread += bytesread; buffersize += pipesize;