Skip to content

Commit

Permalink
Merge pull request #389 from pazof/master
Browse files Browse the repository at this point in the history
Fixes #374 Crash in android
  • Loading branch information
danipen authored Jan 8, 2024
2 parents 09b0c9a + ed6bada commit 368ed08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/AvaloniaEdit/Editing/TextArea.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,9 @@ public override TextSelection Selection
}
set
{
var selection = _textArea.Selection;
if (_textArea == null) return;
var selection = _textArea.Selection;
if (selection.StartPosition.Line == 0) return;

_textArea.Selection = selection.StartSelectionOrSetEndpoint(
new TextViewPosition(selection.StartPosition.Line, value.Start),
Expand Down

0 comments on commit 368ed08

Please sign in to comment.