From c460f3c5147a4395024421d369cee004606bf64d Mon Sep 17 00:00:00 2001 From: Nikolay Chashnikov Date: Sat, 22 Jan 2005 13:58:33 +0300 Subject: [PATCH] fabrique's exception fixed (FBQ-9916) --- source/com/intellij/codeInsight/editorActions/TypedHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/com/intellij/codeInsight/editorActions/TypedHandler.java b/source/com/intellij/codeInsight/editorActions/TypedHandler.java index db0ae536cb5b..60d2e60dace0 100644 --- a/source/com/intellij/codeInsight/editorActions/TypedHandler.java +++ b/source/com/intellij/codeInsight/editorActions/TypedHandler.java @@ -210,7 +210,7 @@ public class TypedHandler implements TypedActionHandler { return false; } finally { - while(iterator.getStart() != offset) iterator.retreat(); + while(iterator.atEnd() || iterator.getStart() != offset) iterator.retreat(); } }