Classic Computer Magazine Archive ST-Log ISSUE 35 / AUGUST 1989 / PAGE 6

Outline Plus update

I recently discovered a bug in the ST version of Outline Plus. If the vertical scroll bar is used to reposition the window, and the new cursor position is on an empty line, the program will crash. Scrolling the window with the arrow keys, page-up or page-down keys, or clicking in the shaded part of the vertical scroll bar to page-up or page-down all work fine.

One line needs to be added to the program to prevent this problem. In the procedure Wind_VSlide, the following line should be added:

if XPos[WindNo] < 1 then XPos [WindNo] : = 1;

The above code should be added immediately following this line:

if xPos [WindNo] > Length (Current [WindNo]^. NewWord) then
   XPos [WindNo] : = Length (Current [WindNo]^. New Word) ;

—James Maki
Indianapolis, IN

ALL LETTERS TO BE CONSIDERED FOR PUBLICATION SHOULD BE ADDRESSED TO:

ST-LOG, READER COMMENT
P.O. BOX 1413-M.O.
MANCHESTER, CT 06040-1413