[Pharo-project] Strange code replacement when prompting unknown selector
The problem seems to be between *TextEditor>>correctFrom:to:with:* and * Parser>>substituteWord:wordInterval:offset:* The TextEditor isn't using well the selection offset to calculate the replacement, and the parser is sending an interval that's not the one that the Editor must replace. I think the right place to put this is the Editor, but behind another message like replaceInSelectionFrom:to:with: What do you think? Guille On Wed, Oct 6, 2010 at 6:33 PM, Guillermo Polito <guillermopolito@gmail.com>wrote:
http://code.google.com/p/pharo/issues/detail?id=3070
Cheers! Guille
2010/10/9 Guillermo Polito <guillermopolito@gmail.com>
The problem seems to be between *TextEditor>>correctFrom:to:with:* and * Parser>>substituteWord:wordInterval:offset:*
The TextEditor isn't using well the selection offset to calculate the replacement, and the parser is sending an interval that's not the one that the Editor must replace.
I think the right place to put this is the Editor, but behind another message like replaceInSelectionFrom:to:with:
What do you think?
Guille
On Wed, Oct 6, 2010 at 6:33 PM, Guillermo Polito < guillermopolito@gmail.com> wrote:
http://code.google.com/p/pharo/issues/detail?id=3070
Cheers! Guille
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Sounds reasonable. Cheers, Juan Vuletich Mariano Martinez Peck wrote:
2010/10/9 Guillermo Polito <guillermopolito@gmail.com <mailto:guillermopolito@gmail.com>>
The problem seems to be between /TextEditor>>correctFrom:to:with:/ and /Parser>>substituteWord:wordInterval:offset:/
The TextEditor isn't using well the selection offset to calculate the replacement, and the parser is sending an interval that's not the one that the Editor must replace.
I think the right place to put this is the Editor, but behind another message like replaceInSelectionFrom:to:with:
What do you think?
Guille
On Wed, Oct 6, 2010 at 6:33 PM, Guillermo Polito <guillermopolito@gmail.com <mailto:guillermopolito@gmail.com>> wrote:
http://code.google.com/p/pharo/issues/detail?id=3070
Cheers! Guille
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr <mailto:Pharo-project@lists.gforge.inria.fr> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
------------------------------------------------------------------------
No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.862 / Virus Database: 271.1.1/3184 - Release Date: 10/08/10 03:34:00
participants (3)
-
Guillermo Polito -
Juan Vuletich -
Mariano Martinez Peck