Opened on Jun 10, 2010 at 4:44:43 PM
Closed on Jun 18, 2010 at 10:16:33 AM
Last modified on Jun 18, 2010 at 12:00:03 PM
#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:2 by , on Jun 11, 2010 at 5:12:10 PM
| Status: | new → assigned |
|---|
I will have a look to see what the best resolution is.
Jos
comment:3 by , on Jun 11, 2010 at 9:51:38 PM
try this version of AutoItTools.lua. It will now only propercase the keyword when a space/(/= are typed.
Jos
comment:4 by , on Jun 15, 2010 at 5:21:07 PM
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
comment:5 by , on Jun 18, 2010 at 10:16:33 AM
| Resolution: | → Fixed |
|---|---|
| Status: | assigned → closed |
fixed by beta version

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.