- Since proto.h includes nano.h, and nano.h includes config.h
first, include proto.h first and remove redundant includes of
config.h in all non-header source files. (DLR)
+ - Refer to the Enter key instead of the Return key for
+ consistency. Changes to load_history() and rcfile_error().
+ (DLR)
- browser.c:
do_browser()
- When setting the width of each file, use the "?" operator
rcfile_error(N_("Error reading %s: %s"), nanohist,
strerror(errno));
fprintf(stderr,
- _("\nPress Return to continue starting nano\n"));
+ _("\nPress Enter to continue starting nano\n"));
while (getchar() != '\n')
;
}
#endif
/* We have an error in some part of the rcfile. Put it on stderr and
- * make the user hit Return to continue starting up nano. */
+ * make the user hit Enter to continue starting up nano. */
void rcfile_error(const char *msg, ...)
{
va_list ap;
if (errors) {
errors = FALSE;
- fprintf(stderr, _("\nPress Return to continue starting nano\n"));
+ fprintf(stderr, _("\nPress Enter to continue starting nano\n"));
while (getchar() != '\n')
;
}
#endif
}
-/* Someone hits Enter/Return *gasp!* */
+/* Someone hits Enter *gasp!* */
void do_enter(void)
{
filestruct *newnode = make_new_node(openfile->current);
if (tmpcolor->bright)
wattron(edit, A_BOLD);
wattron(edit, COLOR_PAIR(tmpcolor->pairnum));
- /* Two notes about regexec(). Return value 0 means there is
- * a match. Also, rm_eo is the first non-matching character
- * after the match. */
+ /* Two notes about regexec(). A return value of zero means
+ * that there is a match. Also, rm_eo is the first
+ * non-matching character after the match. */
/* First case, tmpcolor is a single-line expression. */
if (tmpcolor->end == NULL) {