Menu

#587 FIX Auto-Completion problem since 6.5.4

Next_major_release
open
nobody
None
7
2014-08-08
2014-06-08
TittErS
No

Hello,
A problem with Auto-Completion since the version 6.5.4 with a custom language (Arma3).

Exemple:

file: APIs/SQF.xml

<AutoComplete language="SQF">
    <Environment ignoreCase="yes" startFunc="" stopFunc="" paramSeparator="," terminal=";" />
    <KeyWord name="addAction" />
    <KeyWord name="ASLToATL" />
    <KeyWord name="binocular" />
    <KeyWord name="BIS_fnc_MP" />
</AutoComplete>


In npp 6.5.3, I write :

ad


Tip list return :

addAction <-- selected
ASLToATL
binocular
BIS_fnc_MP


Other exemple :

Write : ad
Tip list return selected : addAction

Write : bi
Tip list return selected : binocular


With npp 6.5.3 Auto-Completion is OK.


Now with npp >= 6.5.4, Auto-completion bug, I write :

a


Tip list return :

ASLToATL <-- selected
BIS_fnc_MP
addAction
binocular


Other exemple :

Write : ad
Tip list return selected : NONE

Write : as OR AS
Tip list return selected : ASLToATL

Write : bi OR BI
Tip list return selected : BIS_fnc_MP

Write : bin OR BIN 
Tip list return selected : NONE


With npp >= 6.5.4 Auto-Completion is NOT OK
.

This shows when Tip List return a different order :
npp 6.5.3 : order case is insensitive: a-Z
npp >= 6.5.4 : order case is sensitive: A-Z-a-z



BUG FIX :

file: npp.6.6.4.src\PowerEditor\src\ScitillaComponent\AutoCompletion.cpp
line: 616

Replace:

sort(_keyWordArray.begin(), _keyWordArray.end());


By (or Delete line):

//sort(_keyWordArray.begin(), _keyWordArray.end());


Sorry for the long speech.
This can be revised for next version ?


Sorry for my english

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.