Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: h3x on December 30, 2012, 01:05:31 am

Title: Hi i need a bit of help concerning latest CB
Post by: h3x on December 30, 2012, 01:05:31 am
When i type a std:: function like for example std::min(|) and place my cursor inside to brackets a list of parameters comes up.While it's mostly helpful sometimes it can block the cursor which is kinda a pain. Which plugin disables this?
Title: Re: Hi i need a bit of help concerning latest CB
Post by: oBFusCATed on December 30, 2012, 01:22:04 am
Which plugin disables this?
Code completion, but I doubt you want to disable this lugin.

Can you tell us your OS and C::B versions?
Title: Re: Hi i need a bit of help concerning latest CB
Post by: h3x on December 30, 2012, 01:29:16 am
C::B is latest stable version from codeblocks.org > downloads (12.11 i think)

And OS is Linux Mint 14 'nadia'.

Title: Re: Hi i need a bit of help concerning latest CB
Post by: zabzonk on December 30, 2012, 01:30:15 pm
I agree, this is very irritating, and has been complained about quite a bit here. It only causes a problem when the line being completed is at the bottom of the editor pane, so one work-round is not to let the line get to the bottom! You can make the editor do this by using the less than clearly named Settings|Editor|Editor Tweaks|Editor Caret Buffer option, which keeps the editor insertion point away from the bottom of the editor.
Title: Re: Hi i need a bit of help concerning latest CB
Post by: oBFusCATed on December 30, 2012, 03:43:30 pm
As far as I can see, this line causes the problem:
Code
------------------ src/sdk/wxscintilla/src/ScintillaWX.cpp -------------------
index 41257d5..e8c49b6 100644
@@ -821,7 +821,7 @@ sptr_t ScintillaWX::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam)
           Point pt = LocationFromPosition(wParam);
           char* defn = reinterpret_cast<char *>(lParam);
           AutoCompleteCancel();
-          pt.y += vs.lineHeight;
+          //pt.y += vs.lineHeight;
 /* C::B begin */
           /* This fix will allow you to actually modify the calltip font (it
            * was hardcoded to STYLE_DEFAULT instead of allowing user to
Title: Re: Hi i need a bit of help concerning latest CB
Post by: oBFusCATed on January 01, 2013, 02:32:19 pm
Should be fixed in  trunk, please test on windows...