Skip to content

Commit

Permalink
[Editor] Catch base exception in case of task cancellation. (fixes st…
Browse files Browse the repository at this point in the history
  • Loading branch information
Kryptos-FR authored and xen2 committed Aug 26, 2018
1 parent a1e644e commit 9f126d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ private async void CaretOnPositionChanged(object sender, EventArgs eventArgs)
braceMatcherHighlighter.SetHighlight(result.leftOfPosition, result.rightOfPosition);
}
}
catch (TaskCanceledException) { }
catch (OperationCanceledException) { }
}

protected override void OnKeyDown(KeyEventArgs e)
Expand Down

0 comments on commit 9f126d0

Please sign in to comment.