[BUG]3.7-5607 ParagraphEditor cursor move problem

Tim Rowledge tim at sumeru.stanford.edu
Tue Dec 30 20:10:41 UTC 2003


In an MVC project, move down a text view with the down cursor. If yo
try to go past the last line you get a notifier because
ParagrahpEditor>sameColumn:newLine:forward: sends #first to nil.

This seems to be because the tempvar 'lines' is treated as having the
right number of entries for the number of lines in the paragraph but it
doesn't. This may be related to the fact that the lines tempvar is an
Array but at least one implementor of #lines in the paragraph world
(ParagraphEditor) returns an OrderedCollection which obviously wouldn't
have this problem.

A quick scan suggests that the issue comes up if Preferences
wordStyleCursorMovement is true. Turning it to false stops the problem -
and it only seems to arise in MVC world. I guess that means it is a
difference between Paragraph and NewParagraph.

debuglog attached.

tim
--
Tim Rowledge, tim at sumeru.stanford.edu, http://sumeru.stanford.edu/tim
After a number of decimal places, nobody gives a damn.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SqueakDebug.log
Type: application/octet-stream
Size: 4255 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20031230/5678342c/SqueakDebug.obj


More information about the Squeak-dev mailing list