Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #51: caret movement when inserting new line with DefaultIndentati…
…onStrategy and there are spaces to the right of the caret
- Loading branch information
Showing
1 changed file
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Is passing "indentation.Length" as the second parameter a mistake? Shouldn't it be "indentationSegment.Lenght"? The documentation for the second parameter says "The length of the text to be replaced" but here the length of the indentation is passed instead of the length of the selection. Here's an example of where this produces a bug:
Position cursor on INNER (just before I), and press enter. The I is replaced by \t.