Re: [Lazarus] Code-Template issue - duplicating text

2009-07-09 Thread Graeme Geldenhuys
Martin Friebe wrote: Actually, just thinking. IMHO a template should be triggered, if you are at the end of the token?, so pressing space, *before* the "return" should probably not trigger at all. That is the exact same behaviour that I expected. Plus the duplication of the text is a odd beh

Re: [Lazarus] Code-Template issue - duplicating text

2009-07-09 Thread Graeme Geldenhuys
Martin Friebe wrote: Report it and I can have a look. (or someone, but I am willing, and I probably broke it) OK, will to so tomorrow from work. does it also happen, if the caret is in the middle of your token? I don't think it does, but I'll double check tomorrow. Regards, - Graeme - _

Re: [Lazarus] Code-Template issue - duplicating text

2009-07-09 Thread Martin Friebe
Actually, just thinking. IMHO a template should be triggered, if you are at the end of the token?, so pressing space, *before* the "return" should probably not trigger at all. then again it is still broken. tryc|f ctrl-j executes the trycf template (as tryc was enough to identify it "tryc|

Re: [Lazarus] Code-Template issue - duplicating text

2009-07-09 Thread Martin Friebe
It's probably a bug. Report it and I can have a look. (or someone, but I am willing, and I probably broke it) IIRC there the code template, once called, searches the text for the template identifier, so it can repalce it. Seems that if you are at the start of token, it does not find it. (It s

[Lazarus] Code-Template issue - duplicating text

2009-07-09 Thread Graeme Geldenhuys
Hi I created a while back a code template to fix the case of the word Result. eg: result --> Result [ Yes, I'm full of sh*t ] Anyway, here is the code template as Lazarus wrote it in the .dci file. =[ lazarus.dci ] [result | Fix case - Result] $(AttributesStart) Auto