4a5 > * further modifications by: Robert Regn rtregn@faui32.uucp 158d158 < UNCHANGED; 273c273 < if ( strcmp(cmd,"set")==0 ) { --- > if ( strncmp(cmd,"set", 2)==0 ) { 480a481,483 > if (altfile) > free(altfile); > altfile = strsave(arg); 503a507,523 > } else > if (strchr(arg, '%')) { > char *s, *buf=alloc(strlen(arg)+strlen(Filename)); > if (Filename == NULL) { > emsg("No filename"); > return FALSE; > } > s = strchr(arg, '%'); > *s = 0; > strcpy (buf, arg); > strcat (buf, Filename); > strcat (buf, s+1); > if (altfile) /* I'm not shure if it is ok */ > free(altfile); > altfile = Filename; > altline = cntllines(Filemem, Curschar); > Filename = buf; 504a525,526 > if (altfile) /* I'm not shure if it is ok */ > free(altfile); 530a553 > #ifndef MINIX 548a572 > #endif 555d578 < int n; 608c631 < } while (c != '\r' && c != '\n'); --- > } while (c != '\r' && c != '\n' && c != ' ' && c != ':'); 610c633,638 < screenclear(); --- > if ( c == ':') { /* this can vi too */ > outstr("\n"); > readcmdline(c, NULL); > } > else > screenclear();