Lazarus

Programming => Packages and Libraries => SynEdit => Topic started by: Basile B. on January 06, 2015, 02:28:04 am

Title: [SynEdit] Case-insensitive syncro-edit - patch ?
Post by: Basile B. on January 06, 2015, 02:28:04 am
Is there any particular reason for TSynPluginSyncroEdit not to be case sensitive ?
the thing is done in TSynPluginSyncroEditLowerLineCache (https://github.com/alrieckert/lazarus/blob/master/components/synedit/synpluginsyncroedit.pp#L345),

If no, can I submit a patch ? I would add a new property CaseSensistive with default set to false, (so that current usage won't be broken) in TSynPluginSyncroEdit and also TSynPluginSyncroEditLowerLineCache.

According to the value, the UTF8LowerCase() function will not be called and the original text copied. The property would be passed to the LowerLines before each activation of the syncro-edition.
Title: Re: [SynEdit] Case-insensitive syncro-edit - patch ?
Post by: Martin_fr on January 06, 2015, 02:38:31 am
Please submit (the patch) to the bug tracker, and I will review when I have time.

TinyPortal © 2005-2018