Path: utzoo!utgpu!water!watmath!clyde!rutgers!rochester!cornell!uw-beaver!tektronix!reed!nscpdc!rgb From: rgb@nscpdc.NSC.COM (Robert Bond) Newsgroups: comp.sources.bugs Subject: Re: sc 'x' command should set modflg Message-ID: <1027@nscpdc.NSC.COM> Date: 26 Mar 88 23:17:15 GMT References: <818@cresswell.quintus.UUCP> Organization: NSC Portland, Oregon Lines: 16 From article <818@cresswell.quintus.UUCP>, by ok@quintus.UUCP (Richard A. O'Keefe): > The 'x' command in SC wipes out the current cell, but SC doesn't notice > that the spreadsheet has changed, so if you exit with the 'q' command > it will not offer to save the changed file. I found this out the hard way. Richard is right. The fix is to add a line like modflg++; in the case statement for 'x'. It's about line 1064 in version 5.2 of sc.c. I'll publish a patch after I accumulate a few more bugs. Bob -- Robert Bond ihnp4!nsc!nscpdc!rgb National Semiconductor tektronix!nscpdc!rgb