News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

codecomletin problem

Started by blueshake, August 27, 2009, 03:56:49 AM

Previous topic - Next topic

blueshake

hello,
did anybody find that when the codecompletion is activated and you type "."
then the member list will not show.
see the attachment.
i think this patch will help.
Index: codecompletion.cpp
===================================================================
--- codecompletion.cpp (revision 5744)
+++ codecompletion.cpp (working copy)
@@ -1937,7 +1937,9 @@
//        Manager::Get()->GetLogManager()->DebugLog(_T("wxEVT_SCI_KEY"));
//    else if (event.GetEventType() == wxEVT_SCI_MODIFIED)
//        Manager::Get()->GetLogManager()->DebugLog(_T("wxEVT_SCI_MODIFIED"));
-
+    if (event.GetKey() == '.')
+        if (control->AutoCompActive())
+            control->AutoCompCancel();
     if (event.GetEventType() == wxEVT_SCI_CHARADDED &&
         !control->AutoCompActive()) // not already active autocompletion
     {

any comment will be welcomed

[attachment deleted by admin]
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

blueshake

let me describle this problem again.
here is the test codes.
#include <iostream>

using namespace std;
class pt
{
    int x;
    int y;
};
int main()
{
    pt pp;
    |
    cout << "Hello world!" << endl;
    return 0;
}


in the "|" position ,you type pp and the codecompletion showed (see the attachment above)
and you continue to type the char "." (notice the codecompletion still show) .
here the class pt's members is excepted to be show.but nothing show here.
so this patch can solve the problem.
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

ollydbg

I have applied this patch in my local copy.

And it works!!!

Thanks! :D
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.