[BUG] Incorrect cursor location in NewParagraph

Doug Way dway at riskmetrics.com
Mon Feb 5 06:17:23 UTC 2001


This is an annoying bug that's been around for a couple of years, but I finally figured out how to duplicate the problem, so I figured I'd just report it now.  (It doesn't necessarily have to be fixed for 3.0 if it looks messy, but if it's a simple fix, it would be worth it.)

In Morphic, if you have the following text in a workspace:

This is line 1
This is line 2

**and** you have a return character after line 2, you will normally be able to click the mouse two times below line 2 in order to select all the text.  If you edit line 2 (e.g. so that it reads "line number 2"), you can still select all the text by clicking below the second line.  However, if you edit line 1, you will not be able to select all the text from the bottom in the same way.  Things get messed up such that the last return character seems to be gone.  In this state, if you position the cursor immediately after the 2, and press the right arrow, the cursor jumps to the beginning of line 2... oof.

Since I had some old images lying around, I determined that this bug started happening around the time of 2.4.  The culprit seems to be changeset 1160, the FasterText changeset (Dan Ingalls).  (I didn't track down the bug to see if it's actually in NewParagraph, or something else like TextLine, but it seemed like probably NewParagraph.)

- Doug Way
  dway at riskmetrics.com





More information about the Squeak-dev mailing list