Skip to content

Commit 04a8cf8

Browse files
codingdaveqbDavid
authored andcommitted
Makes current behavior more explicitly visible
1 parent e2d279e commit 04a8cf8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

FastColoredTextBox/FastColoredTextBox.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ public FastColoredTextBox()
145145
InitTextSource(CreateTextSource());
146146
if (lines.Count == 0)
147147
lines.InsertLine(0, lines.CreateLine());
148-
selection = new Range(this) {Start = new Place(0, 0)};
148+
selection = new Range(this);
149+
selection.SetStartAndEnd(new Place(0, 0));
149150
//default settings
150151
Cursor = Cursors.IBeam;
151152
BackColor = Color.White;

0 commit comments

Comments
 (0)