IDEA-59306 Soft wrap: Throwable at CaretModelImpl.moveToOffset() on inserting tab in last empty line in editor

1. Corrected soft wraps cache recalculation in order to take into account document position after the last symbol;
2. Corresponding test is added (com.intellij.openapi.editor.impl.softwrap.mapping.SoftWrapApplianceOnDocumentModificationTest.testTypingTabOnLastEmptyLine());
This commit is contained in:
Denis Zhdanov
2010-10-01 14:56:58 +04:00
parent 9af1b4d196
commit e5eae8e5f8
6 changed files with 35 additions and 25 deletions

View File

@@ -1,3 +0,0 @@
abcdefghijklmnopqrstuvwxyz<caret>
123
ABCDEFGHIJKLMNOPQRSTUVWXYZ

View File

@@ -1 +0,0 @@
this is a test string that is expected to end just before right margin<caret>