Hi, I've done some more testing and logging: It seems that the problem is slightly different: start with TMacroTemplatesExpert.ExpandTemplate: here at the very beginning the template and it's positions are calculated byte-based: GxOtaGetCurrentIdentEx(TemplateName, IdentOffset, IdentPos, CaretPos, AfterLen, True); later when adding the template to editor with InsertTemplateIntoEditor, the template is added right, but deleting the template text fails as it tries to do that on character postitions:...
Hi, I've done some more testing and logging: It seems that the problem is slightly different: start with TMacroTemplatesExpert.ExpandTemplate: here at the very beginning the template and it's positions are calcultaed bytebased: GxOtaGetCurrentIdentEx(TemplateName, IdentOffset, IdentPos, CaretPos, AfterLen, True); later when adding the template to editor with InsertTemplateIntoEditor, the template is added right, but deleting the template text fails as it tries to do that on character postitions:...
Any chance that this issue get a somewhat higher priority? At the moment this bug prevents us from using any newer GExpert version. I tried to find a fix my myself but I'm not familiar with debugging IDE Extensions.
As it seems to be the same problem, another way to reproduce this: Delphi 10.2.3 (German), Windows 10m, German, GE 1.3.14.80 on IDE create a new VCL project add a new method 'Test' to TForm1 place cursor on beginning of line above implementation of 'Test' add comment: '// Über' place cursor in implemntation of 'test' after Begin (see GE_bug_1) type 'ph' or 'xdoc' (one of them should be defined as macro template invoke the template only part of template shortcut is removed, beginning 'p' or 'x' is...