Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site noao.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!hao!noao!grandi From: grandi@noao.UUCP (Steve Grandi) Newsgroups: net.unix-wizards,net.bugs Subject: vi/ex (v3.7) :recover problem. Message-ID: <421@aquila.noao.UUCP> Date: Thu, 8-Nov-84 00:24:20 EST Article-I.D.: aquila.421 Posted: Thu Nov 8 00:24:20 1984 Date-Received: Sat, 10-Nov-84 06:31:44 EST Distribution: net Organization: Natl. Optical Astronomy Observatories, Tucson, AZ USA Lines: 43 Subject: Problem with ex/vi (version 3.7) :recover command Index: /usr/src/ucb/ex/ex_cmds.c 4.2BSD Description: Recovering a "preserved" editor session following an editor crash with the :recover command does not cause the "changed" flag to be set; an immediate ZZ will cause the recovered changes to be lost forever. Repeat-By: Edit an existing file with vi. Cause an editor crash (pushing the white button on the front of the 750 is one way; a more friendly technique is the :preserve command). Once more start up vi to edit the file and use :recover to restore things. IMMEDIATELY enter ZZ to save the file. Look at the saved file and notice that the carefully restored changes have disappeared. Fix: *** ex_cmds.c.ORIG Wed Jun 15 14:02:18 1983 --- ex_cmds.c Wed Nov 7 19:14:48 1984 *************** *** 516,522 tlaste(); #endif laste = 0; - sync(); nochng(); continue; } --- 516,521 ----- tlaste(); #endif laste = 0; nochng(); continue; } -- Steve Grandi, National Optical Astronomy Observatories, Tucson, AZ Usenet: {allegra,arizona,astrovax,decvax,hao,ihnp4} !noao!grandi Arpa: noao!grandi@lbl-csam