We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents edb01f4 + 0062701 commit 8723662Copy full SHA for 8723662
1 file changed
ICSharpCode.AvalonEdit/Editing/EditingCommandHandler.cs
@@ -450,6 +450,7 @@ static void OnPaste(object target, ExecutedRoutedEventArgs args)
450
else
451
return; // no text data format
452
text = TextUtilities.NormalizeNewLines(text, newLine);
453
+ text = textArea.Options.ConvertTabsToSpaces ? text.Replace("\t", new String(' ', textArea.Options.IndentationSize)) : text;
454
} catch (OutOfMemoryException) {
455
// may happen when trying to paste a huge string
456
return;
0 commit comments