Thread View: net.micro.mac
1 messages
1 total messages
Started by VICTOR ROMANO
Tue, 05 Mar 1985 02:24
Bug in TESetSelect (first text operation only)
Author: VICTOR ROMANO
Date: Tue, 05 Mar 1985 02:24
Date: Tue, 05 Mar 1985 02:24
23 lines
1501 bytes
1501 bytes
There is an interesting bug in TESetSelect. If it is called before TEClick is ever called, the selection region is set to the proper value, but the caret appears at the end of the previous line if it was intended to appear at the beginning of a line. Of course this causes strange things to happen when something is inserted (an in TEKey). There is an interesting kludge which I added to solve this problem: (using MegaMax C) if ((*hte)->clickstuff == 0) (*hte)->clickstuff = -1; tesetselect (start, end, hte); I discovered this is because clickstuff always has a value of -1, -255, -256, 255, and 256, but 0 before any text operations have been performed. I arbitrarily chose to assign the value of -1, since this is the most common. Question: can this have any harmful side effects? Also, what does this field mean, anyway? Victor Romano
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads