diff options
-rw-r--r-- | MyDocument.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/MyDocument.cs b/MyDocument.cs index e4fa4e6..b7e624d 100644 --- a/MyDocument.cs +++ b/MyDocument.cs @@ -389,7 +389,8 @@ namespace macdoc tabSelector.SelectAt (2); Search (contents); // Unselect the search term in case user is typing slowly - sender.CurrentEditor.SelectedRange = new NSRange (contents.Length, 0); + if (sender.CurrentEditor != null) + sender.CurrentEditor.SelectedRange = new NSRange (contents.Length, 0); } // Typing in the index panel |