Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#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 Changed 14 years ago by AdamUL

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.

comment:2 Changed 14 years ago by Jos

  • Status changed from new to assigned

I will have a look to see what the best resolution is.

Jos

comment:3 Changed 14 years ago by Jos

try this version of AutoItTools.lua. It will now only propercase the keyword when a space/(/= are typed.

Jos

comment:4 Changed 14 years ago by AdamUL

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 Changed 14 years ago by Jpm

  • Resolution set to Fixed
  • Status changed from assigned to closed

fixed by beta version

comment:6 Changed 14 years ago by TicketCleanup

  • Milestone set to Future Release

Automatic ticket cleanup.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The owner will remain Jos.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.