diff -ru nano-1.2.1-orig/rcfile.c nano-1.2.1/rcfile.c --- nano-1.2.1-orig/rcfile.c 2003-03-11 05:50:40.000000000 +0200 +++ nano-1.2.1/rcfile.c 2003-07-05 08:22:42.000000000 +0300 @@ -468,6 +468,7 @@ /* Parse the RC file, once it has been opened successfully */ void parse_rcfile(FILE *rcstream) { + FILE *rc; char *buf, *ptr, *keyword, *option; int set = 0, i, j; @@ -499,6 +500,17 @@ set = 1; else if (!strcasecmp(keyword, "unset")) set = -1; + else if (!strcasecmp(keyword, "insert")) { + option = ptr; + ptr = parse_next_word(ptr); + if ((rc = fopen(option, "r")) == NULL) { + rcfile_error(_("Unable to read %s file, %s"), + ptr, strerror(errno)); + } else { + parse_rcfile(rc); + fclose(rc); + } + } #ifdef ENABLE_COLOR else if (!strcasecmp(keyword, "syntax")) parse_syntax(ptr); @@ -652,7 +664,6 @@ } else { nanorc = nrealloc(nanorc, strlen(userage->pw_dir) + 9); sprintf(nanorc, "%s/.nanorc", userage->pw_dir); - } }