roy%cybrspc@cs.umn.edu (Roy M. Silvernail) (03/21/91)
Some months ago, I hacked some restricted-user code into Stevie, so I and others could offer the editor to our BBS users. The patches were well received, and BBStevie has spread around a bit. Recently, though, a user in England has discovered a bug! (it's in the original code, not my patches) If you hit '}' from command mode, Stevie is supposed to search to the next paragraph. However, if there is no next paragraph (such as if you are at EOF), Stevie will lock up. The problem is in the file sentence.c, and the following patch will fix it. (If you're interested in BBStevie, the full set of patches will be posted to alt.bbs.waffle, as well as the MS-DOS executable) ---- cut here to avoid certain disaster --- *** .\SENTENCE.C Sun Mar 11 03:20:58 1990 --- ..\SENTENCE.C Wed Mar 20 21:53:38 1991 *************** *** 165,171 **** bcurr = blankline (curr); /* Test halting condition */ ! if (dir==FORWARD && bcurr && !blast) { setpcmark(); curr = skiptotext (curr, FORWARD); *Curschar = *curr; --- 165,171 ---- bcurr = blankline (curr); /* Test halting condition */ ! if (dir==FORWARD && bcurr && !blast && curr) { setpcmark(); curr = skiptotext (curr, FORWARD); *Curschar = *curr; ---- cut here to avoid certain disaster --- -- Roy M. Silvernail -- roy%cybrspc@cs.umn.edu - OR- cybrspc!roy@cs.umn.edu perl -e '$x = 1/20; print "Just my \$$x! (adjusted for inflation)\n"' [space reserved for clever quote]{mail your submissions}