Skip to content

Commit

Permalink
fix highlighting again
Browse files Browse the repository at this point in the history
  • Loading branch information
dotob committed Dec 19, 2013
1 parent 8be6c32 commit 357916a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
4 changes: 2 additions & 2 deletions MONI/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.9.9.0")]
[assembly: AssemblyFileVersion("0.9.9.0")]
[assembly: AssemblyVersion("0.9.9.1")]
[assembly: AssemblyFileVersion("0.9.9.1")]
17 changes: 8 additions & 9 deletions MONI/ValueConverter/HighLightSearchTextConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,15 @@ public object Convert(object[] values, Type targetType, object parameter, Cultur

if (!string.IsNullOrWhiteSpace(preText)) {
wp.Inlines.Add(new Run(preText));
}
Run lastRun = wp.Inlines.LastInline as Run;
if (lastRun != null && lastRun.Background == highLightBrush) {
lastRun.Text += matchText;
} else {
Run lastRun = wp.Inlines.LastInline as Run;
if (lastRun != null && lastRun.Background == highLightBrush) {
lastRun.Text += matchText;
} else {
var run = new Run(matchText);
run.Background = highLightBrush;
run.Foreground = Brushes.DimGray;
wp.Inlines.Add(run);
}
var run = new Run(matchText);
run.Background = highLightBrush;
run.Foreground = Brushes.DimGray;
wp.Inlines.Add(run);
}
found = true;
}
Expand Down
2 changes: 1 addition & 1 deletion moni_updates.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@
"Projekt-/Positionsnummern-Suche: Der Suchtext kann ein Regulärer Ausdruck sein, leider gabs Ärger beim Eingeben. Jetzt nicht mehr.",
"Alle Pfade unterstützen jetzt #{appdata} und #{userhome} als Platzhalter.",
],
"DownLoadURL" : "https://github.com/dotob/moni/releases/download/0.9.9.0/MONI.exe"
"DownLoadURL" : "https://github.com/dotob/moni/releases/download/0.9.9.1/MONI.exe"
},
]

0 comments on commit 357916a

Please sign in to comment.