From e1a378643af683f65b57506d2eff4b71fd13fc0c Mon Sep 17 00:00:00 2001 From: Benjamin Popp Date: Tue, 16 Apr 2019 15:10:39 -0500 Subject: [PATCH] - show info messages even if they're the same as the last one after being closed. - fix a test now that everything is one line lower --- src/HexManiac.Core/ViewModels/EditorViewModel.cs | 2 ++ src/HexManiac.Tests/FindTests.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/HexManiac.Core/ViewModels/EditorViewModel.cs b/src/HexManiac.Core/ViewModels/EditorViewModel.cs index 6a7362fd..ee659e52 100644 --- a/src/HexManiac.Core/ViewModels/EditorViewModel.cs +++ b/src/HexManiac.Core/ViewModels/EditorViewModel.cs @@ -129,6 +129,8 @@ namespace HavenSoft.HexManiac.Core.ViewModels { gotoViewModel.ControlVisible = false; FindControlVisible = false; ShowError = false; + } else { + infoMessage = string.Empty; } if (TryUpdate(ref showMessage, value)) clearMessage.CanExecuteChanged.Invoke(clearMessage, EventArgs.Empty); } diff --git a/src/HexManiac.Tests/FindTests.cs b/src/HexManiac.Tests/FindTests.cs index 29e22996..03c44cc5 100644 --- a/src/HexManiac.Tests/FindTests.cs +++ b/src/HexManiac.Tests/FindTests.cs @@ -343,7 +343,7 @@ namespace HavenSoft.HexManiac.Tests { editor.Find.Execute("This is the song"); var resultsTab = (IViewPort)editor[editor.SelectedIndex]; - resultsTab.FollowLink(0, 0); + resultsTab.FollowLink(0, 1); Assert.NotEqual(viewPort.SelectionStart, viewPort.SelectionEnd); }