[comp.sources.bugs] sc 'x' command should set modflg

ok@quintus.UUCP (Richard A. O'Keefe) (03/25/88)

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.

rgb@nscpdc.NSC.COM (Robert Bond) (03/27/88)

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