User forums > Help

Ctrl+J can not call AutoComplete functions

(1/1)

iceant:
I rebuild the codeblocks from svn source code(10793).
Found Ctrl+J doesn't work now. I checked the source code history, it looks like the source code had been changed.

I have to change the WordStartPosition(..., false) to WordStartPosition(..., true). Now, it works.

May I understand why it had been set to false? Is there any special reason?

--- C:/Users/pengc/AppData/Local/Temp/abbreviations.cpp-revBASE.svn000.tmp.cpp   周四 1月 28 22:15:45 2016
+++ D:/usr/local/src/codeblocks/src/plugins/abbreviations/abbreviations.cpp   周五 2月 26 12:03:29 2016
@@ -180,2 +180,2 @@ void Abbreviations::OnEditAutoComplete(cb_unused w
-    int startPos = control->WordStartPosition(curPos, false);
-    const int endPos = control->WordEndPosition(curPos, false);
+    int startPos = control->WordStartPosition(curPos, true);
+    const int endPos = control->WordEndPosition(curPos, true);
@@ -245,2 +245,2 @@ void Abbreviations::DoAutoComplete(cbEditor* ed)
-    int wordStartPos = control->WordStartPosition(curPos, false);
-    const int endPos = control->WordEndPosition(curPos, false);
+    int wordStartPos = control->WordStartPosition(curPos, true);
+    const int endPos = control->WordEndPosition(curPos, true);

Jenna:
Thanks for investigating and reporting, there is already a threat anbout this issue:
http://forums.codeblocks.org/index.php/topic,20970.msg143264.html#msg143264

Navigation

[0] Message Index

Go to full version