Tested with SciTE on Platform Windows 7 SP1.
SciTE v5.1.16 will not display autocomplete with a line that is not followed by an existing character or a newline sequence.
A test case used is same as [#2265] with test.lua.
With an empty test.lua file, type o and the autocomplete will not display. Undo, and type a space, type home key to go back to position 0 and then type o which will now display the autocomplete.
I tested SC1.exe from v5.0.2 to v5.1.16. All versions up to v5.1.15 works as expected to invoke the display of the autocomplete. So, some code changed after release of v5.1.15 which changed the autocomplete behaviour for the release of v5.1.16.
I have looked at some bug fixes in the timeframe just before release of v5.1.16:
No luck with my discovering the cause. The commit log of /src/AutoComplete.cxx gives me no clues so some other code may have caused this. Hope you can solve this.
Reproduced the problem with current code.
I incremently patched sources of v5.1.15 and recompiled until the issue occured. This patch is the cause [483efd].
I have tested with
printfinbool SciTEBase::StartAutoComplete()function and with starting v5.1.15, I get"o"fromprintf("line: \"%s\"\n", line.c_str());. The patched v5.1.15 gives"".This means
GetCurrentLine()has an issue. So, this quote comes to mind:Higher up in
SciTEBase.cxxis:which I changed to
which just adds
+ 1tolen, recompiled and autocomplete displays now.I do not know if this is correct fix or not. Seems that [483efd] may cause more issues with get text type functions which I may not be aware of yet.
Just thought I would give a heads up to my investigation to gather some more experience.
Related
Commit: [483efd]
The length is accurate now so there is no need to chop off the end. Committed [fd34e2].
Related
Commit: [fd34e2]