Bug Report: Find & Replace dialog

Marco,
Somehow my Begin/End of line plugin is getting in the way.

Any ideas why? I'll look see what I can see from here.

Have a great weekend.
 
Pretty weird!

When in the text field of the find dialog, with text in the field, no matter where in the text I am begin of line reports line 1, col 1. After I press End, begin of line reports line 1, col 29 - no matter where in the text I move the caret.

You can see this if you uncomment the showmessage at line 106 in unBeginOfLine.pas.

More interesting, the plugin gets called while the dialog has focus, but what it is returning is from the edit window and when the editor gets focus again the cursor has moved based on how the home/end keys were pressed.

Should plugin be called in dialogs like this? If so, can someway be made to determine that we are in a dialog so we won't run at the wrong time (but, then we need a way to execute commands like Home and End and others). IDE_GetWindowType doesn't know about the dialog having focus, it reports the window behind the dialog.
 
Back
Top