Skip to content

Commit

Permalink
Found bug when opening a file either by double click or through the o…
Browse files Browse the repository at this point in the history
…pen file dialog.
  • Loading branch information
Max DR committed Jul 19, 2020
1 parent 3648576 commit e562181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ModernNotepad/Behaviors/TextChangedBehavior.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ private void OnTextChanged(object sender, TextChangedEventArgs e)

if (e.Changes.FirstOrDefault().AddedLength > 0 ||
e.Changes.FirstOrDefault().AddedLength != textArea.Text.Length ||
e.Changes.FirstOrDefault().RemovedLength > 0)
e.Changes.FirstOrDefault().RemovedLength > 0) // BUG HERE
{
viewModel.Title = $"*{viewModel.Title.Replace("*", "")}";
viewModel.TextEditor.UnsavedChanges = true;
Expand Down

0 comments on commit e562181

Please sign in to comment.