File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public class EditableText
24
24
/// <summary>
25
25
/// The lines in the Text.
26
26
/// </summary>
27
- public string [ ] Lines { get { return lines . ToArray ( ) ; } }
27
+ public IList < string > Lines => lines . ReadOnly ( ) ;
28
28
29
29
/// <summary>
30
30
/// The new line character in the Text.
@@ -118,8 +118,8 @@ public bool IsValidRange(Range range)
118
118
throw new ArgumentNullException ( nameof ( range ) ) ;
119
119
}
120
120
121
- return range . Start . Line <= Lines . Length
122
- && range . End . Line <= Lines . Length
121
+ return range . Start . Line <= Lines . Count
122
+ && range . End . Line <= Lines . Count
123
123
&& range . Start . Column <= Lines [ range . Start . Line - 1 ] . Length
124
124
&& range . End . Column <= Lines [ range . End . Line - 1 ] . Length + 1 ;
125
125
}
You can’t perform that action at this time.
0 commit comments