diff --git a/WordsLive/Editor/EditorWindow.xaml.cs b/WordsLive/Editor/EditorWindow.xaml.cs index 58ab8bc..16802f4 100644 --- a/WordsLive/Editor/EditorWindow.xaml.cs +++ b/WordsLive/Editor/EditorWindow.xaml.cs @@ -395,7 +395,7 @@ private void OnCommandCanExecute(object sender, CanExecuteRoutedEventArgs e) { string text = Clipboard.GetText(); var firstNewline = text.IndexOf('\n'); - if (firstNewline > 0 && text.Length >= firstNewline + 1) + if (firstNewline > 0 && text.Length >= firstNewline + 2) { var next = text[firstNewline + 1]; e.CanExecute = (next == '\n' || next == '\r') && text.Contains("CCLI");