From 08a36f555d457046a57023bdf7721088b90fdde1 Mon Sep 17 00:00:00 2001 From: Oleg Sukhodolsky Date: Mon, 28 May 2012 15:17:03 +0400 Subject: [PATCH] RUBY-10842: Extract partial moves caret at the start of the inserted text. #RUBY-10842 fixed --- .../com/intellij/refactoring/lang/ExtractIncludeFileBase.java | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/lang-impl/src/com/intellij/refactoring/lang/ExtractIncludeFileBase.java b/platform/lang-impl/src/com/intellij/refactoring/lang/ExtractIncludeFileBase.java index b5e1eacc1b32..6034abe3cbe2 100644 --- a/platform/lang-impl/src/com/intellij/refactoring/lang/ExtractIncludeFileBase.java +++ b/platform/lang-impl/src/com/intellij/refactoring/lang/ExtractIncludeFileBase.java @@ -232,6 +232,7 @@ public abstract class ExtractIncludeFileBase implements Re } }); final String includePath = processPrimaryFragment(first, second, targetDirectory, targetfileName, file); + editor.getCaretModel().moveToOffset(first.getTextRange().getStartOffset()); ApplicationManager.getApplication().invokeLater(new Runnable() { public void run() {