call callback.finish() at the end of expanding
authorEugene Kudelevsky <Eugene.Kudelevsky@jetbrains.com>
Mon, 12 Apr 2010 14:21:37 +0000 (18:21 +0400)
committerEugene Kudelevsky <Eugene.Kudelevsky@jetbrains.com>
Mon, 12 Apr 2010 14:21:37 +0000 (18:21 +0400)
platform/lang-impl/src/com/intellij/codeInsight/template/impl/TemplateManagerImpl.java

index 78523ebf5c17aff972e2e1bf61e9243e33b4a9c0..c6aac65a17825eff9122f21327f0d5cddbb25601 100644 (file)
@@ -253,6 +253,7 @@ public class TemplateManagerImpl extends TemplateManager implements ProjectCompo
             if (template2argument == null || !containsTemplateStartingBefore(template2argument, offsetBeforeKey, caretOffset, text)) {
               callback.getEditor().getDocument().deleteString(offsetBeforeKey, caretOffset);
               customLiveTemplate.expand(key, callback);
+              callback.finish();
               return true;
             }
           }