Author Topic: Ctrl+J can not call AutoComplete functions  (Read 2335 times)

Offline iceant

  • Multiple posting newcomer
  • *
  • Posts: 13
Ctrl+J can not call AutoComplete functions
« on: February 26, 2016, 05:32:05 am »
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);

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Ctrl+J can not call AutoComplete functions
« Reply #1 on: February 26, 2016, 05:53:30 am »
Thanks for investigating and reporting, there is already a threat anbout this issue:
http://forums.codeblocks.org/index.php/topic,20970.msg143264.html#msg143264