We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9625d54 + b139e39 commit e67b6c6Copy full SHA for e67b6c6
1 file changed
ICSharpCode.AvalonEdit/Editing/EditingCommandHandler.cs
@@ -641,7 +641,7 @@ static string InvertCase(string text)
641
static void OnIndentSelection(object target, ExecutedRoutedEventArgs args)
642
{
643
TextArea textArea = GetTextArea(target);
644
- if (textArea != null && textArea.Document != null) {
+ if (textArea != null && textArea.Document != null && textArea.IndentationStrategy != null) {
645
using (textArea.Document.RunUpdate()) {
646
int start, end;
647
if (textArea.Selection.IsEmpty) {
0 commit comments