home *** CD-ROM | disk | FTP | other *** search
- From: roy%cybrspc@cs.umn.edu (Roy M. Silvernail)
- Newsgroups: alt.sources
- Subject: Patch for Stevie 3.69a
- Message-ID: <ey85y1w163w@cybrspc>
- Date: 21 Mar 91 05:04:37 GMT
-
- 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}
-