#1670 closed Bug (Fixed)
SciTE4AutoIt3 Abbreviation Expanson Errors
| Reported by: | AdamUL | Owned by: | Jos |
|---|---|---|---|
| Milestone: | Future Release | Component: | SciTE4AutoIt |
| Version: | 3.3.6.1 | Severity: | None |
| Keywords: | Abbreviation Expanson | Cc: |
Description
When I type the following abbreviations in SciTE, it does the following:
ifthen : Will not expand the abbreviation by pressing the space bar or using ctrl+b due to it automatically capitalizing the "i" in if.
ifelse : Will capitalize the "i" in if causing only the last 2 characters "se" to expand making it "IfelSetError()".
ifelseif : Will not expand the abbreviation by pressing the space bar or using ctrl+b due to it automatically capitalizing the "i" in if.
dountil : Will not expand the abbreviation by pressing the space bar or using ctrl+b due to it automatically capitalizing the "d" in Do.
whilewend : Will not expand the abbreviation by pressing the space bar or using ctrl+b due to it automatically capitalizing the "w" in while.
selectcase : Will capitalize the "s" in select causing only the last 2 characters "se" to expand making it "SelectcaSetError()".
switchcase : Will capitalize the "s" in switch causing only the last 2 characters "se" to expand making it "SwitchcaSetError()".
These are all that I have found as of now, but there could be more. It seems due to SciTE making the first letter capitalized when if recognizes that it is a keyword, but does not make it letter lower case again after the typed word is not a keyword as you continue to type.
Attachments (0)
Change History (6)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
| Status: | new → assigned |
|---|
I will have a look to see what the best resolution is.
Jos
comment:3 by , 16 years ago
try this version of AutoItTools.lua. It will now only propercase the keyword when a space/(/= are typed.
Jos
comment:4 by , 16 years ago
I have tested the new AutoItTools.lua file with the test cases in the first post, and everything seems to be working as expected. Thank you for finding a solution to this problem so quickly.
Adam

I found part of the problem was "proper.case=1" in the SciTEUser.properties file set by checking "Auto Propercase Function and Keywords" checkbox in the "SciTE Config for AutoIt3" utility. Unchecking this kept all the first letters lower case and allowed the abbreviation to expand.
Is there someway to fix this, so when "Auto Propercase Function and Keywords" is checked that when the keyword doesn't match if you continue to type it will make the first letter lowercase again so abbreviation works? If this is not possible, please put a note in the SciTE help file, in the sections about abbreviations, that this setting is not compatible or will cause problems.