@ -66,14 +66,12 @@ namespace ICSharpCode.WixBinding
@@ -66,14 +66,12 @@ namespace ICSharpCode.WixBinding
// Indent the xml.
int insertedCharacterCount = IndentAllLinesTheSame ( region . BeginLine + 1 , region . EndLine + addedLineCount , initialIndent ) ;
// Select the text just inserted.
int textInsertedLength = insertedCharacterCount + xml . Length ;
textEditor . Select ( segment . Offset , textInsertedLength ) ;
// Make sure the text inserted is visible.
textEditor . JumpTo ( region . BeginLine + 1 , 1 ) ;
textEditor . Caret . Position = document . OffsetToPosition ( segment . Offset + textInsertedLength ) ;
// Select the text just inserted.
int textInsertedLength = insertedCharacterCount + xml . Length ;
textEditor . Select ( segment . Offset , textInsertedLength ) ;
}
}
@ -103,14 +101,12 @@ namespace ICSharpCode.WixBinding
@@ -103,14 +101,12 @@ namespace ICSharpCode.WixBinding
// Indent the xml.
int insertedCharacterCount = IndentLines ( line , line + addedLineCount , initialIndent ) ;
// Select the text just inserted.
int textInsertedLength = xml . Length + insertedCharacterCount ;
textEditor . Select ( offset , textInsertedLength ) ;
// Make sure the text inserted is visible.
textEditor . JumpTo ( line + 1 , 1 ) ;
textEditor . Caret . Position = document . OffsetToPosition ( offset + textInsertedLength ) ;
// Select the text just inserted.
int textInsertedLength = xml . Length + insertedCharacterCount ;
textEditor . Select ( offset , textInsertedLength ) ;
}
}