histedit.c (776fc0e90e9072cda064b69e91a6a0e6bede1aa1) | histedit.c (cb806389dba30cf9f34b6290a9250c0d6e5fdced) |
---|---|
1/*- 2 * Copyright (c) 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Kenneth Almquist. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 336 unchanged lines hidden (view full) --- 345 } else { 346 char *s = pat ? 347 fc_replace(he.str, pat, repl) : (char *)he.str; 348 349 if (sflg) { 350 if (displayhist) { 351 out2str(s); 352 } | 1/*- 2 * Copyright (c) 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Kenneth Almquist. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 336 unchanged lines hidden (view full) --- 345 } else { 346 char *s = pat ? 347 fc_replace(he.str, pat, repl) : (char *)he.str; 348 349 if (sflg) { 350 if (displayhist) { 351 out2str(s); 352 } |
353 evalstring(s); | 353 evalstring(s, 0); |
354 if (displayhist && hist) { 355 /* 356 * XXX what about recursive and 357 * relative histnums. 358 */ 359 oldhistnum = he.num; 360 history(hist, &he, H_ENTER, s); 361 /* --- 15 unchanged lines hidden (view full) --- 377 break; 378 } 379 if (editor) { 380 char *editcmd; 381 382 fclose(efp); 383 editcmd = stalloc(strlen(editor) + strlen(editfile) + 2); 384 sprintf(editcmd, "%s %s", editor, editfile); | 354 if (displayhist && hist) { 355 /* 356 * XXX what about recursive and 357 * relative histnums. 358 */ 359 oldhistnum = he.num; 360 history(hist, &he, H_ENTER, s); 361 /* --- 15 unchanged lines hidden (view full) --- 377 break; 378 } 379 if (editor) { 380 char *editcmd; 381 382 fclose(efp); 383 editcmd = stalloc(strlen(editor) + strlen(editfile) + 2); 384 sprintf(editcmd, "%s %s", editor, editfile); |
385 evalstring(editcmd); /* XXX - should use no JC command */ | 385 evalstring(editcmd, 0); /* XXX - should use no JC command */ |
386 INTON; 387 readcmdfile(editfile); /* XXX - should read back - quick tst */ 388 unlink(editfile); 389 } 390 391 if (lflg == 0 && active > 0) 392 --active; 393 if (displayhist) --- 113 unchanged lines hidden --- | 386 INTON; 387 readcmdfile(editfile); /* XXX - should read back - quick tst */ 388 unlink(editfile); 389 } 390 391 if (lflg == 0 && active > 0) 392 --active; 393 if (displayhist) --- 113 unchanged lines hidden --- |