Skip to content

Commit 8723662

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents edb01f4 + 0062701 commit 8723662

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ICSharpCode.AvalonEdit/Editing/EditingCommandHandler.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,7 @@ static void OnPaste(object target, ExecutedRoutedEventArgs args)
450450
else
451451
return; // no text data format
452452
text = TextUtilities.NormalizeNewLines(text, newLine);
453+
text = textArea.Options.ConvertTabsToSpaces ? text.Replace("\t", new String(' ', textArea.Options.IndentationSize)) : text;
453454
} catch (OutOfMemoryException) {
454455
// may happen when trying to paste a huge string
455456
return;

0 commit comments

Comments
 (0)