Reporter: Mark Seiden Sat Jun 29 01:16:12 1996 diff -rc swish.11/src/search.c swish.mis/src/search.c *** swish.11/src/search.c Tue Mar 14 00:00:01 1995 --- swish.mis/src/search.c Mon Jun 3 23:07:20 1996 *************** *** 215,220 **** --- 215,221 ---- gotstar = 1; } firsttime = 0; + newp = (struct swline *) addswline(newp, "("); do { strcpy(foundword, getmatchword(searchword, fp, firsttime)); *************** *** 226,238 **** addswline(newp, foundword); } else { ! if (!firsttime) newp = (struct swline *) addswline(newp, NOWORD); break; } firsttime++; } while (strcmp(foundword, NOWORD)); } else { newp = (struct swline *) addswline(newp, --- 227,241 ---- addswline(newp, foundword); } else { ! if (!firsttime) { newp = (struct swline *) addswline(newp, NOWORD); + } break; } firsttime++; } while (strcmp(foundword, NOWORD)); + newp = (struct swline *) addswline(newp, ")"); } else { newp = (struct swline *) addswline(newp, *************** *** 727,735 **** } filenums = getindexfilenum(fp); ! for (i = 1; !ismarked(i) && i < filenums; i++) ! newp = (struct result *) addtoresultlist(newp, ! i, 1000, IN_ALL); return newp; } --- 730,739 ---- } filenums = getindexfilenum(fp); ! for (i = 1; i <= filenums; i++) ! if (!ismarked(i)) ! newp = (struct result *) addtoresultlist(newp, ! i, 1000, IN_ALL); return newp; }