diff --git a/FModel/FModel.csproj b/FModel/FModel.csproj index a2f525c0..12a0a90f 100644 --- a/FModel/FModel.csproj +++ b/FModel/FModel.csproj @@ -5,9 +5,9 @@ net6.0-windows true FModel.ico - 4.1.0 - 4.1.0.2 - 4.1.0.2 + 4.2.0 + 4.2.0.0 + 4.2.0.0 false true win-x64 diff --git a/FModel/Views/Resources/Controls/AvalonEditor.xaml b/FModel/Views/Resources/Controls/AvalonEditor.xaml index e1b45d20..f82ec447 100644 --- a/FModel/Views/Resources/Controls/AvalonEditor.xaml +++ b/FModel/Views/Resources/Controls/AvalonEditor.xaml @@ -109,7 +109,7 @@ - + > _savedCarets = new(); private NavigationList _caretsOffsets { - get - { - if (MyAvalonEditor.Document != null) - return _savedCarets.GetOrAdd(MyAvalonEditor.Document.FileName, () => new NavigationList()); - else - return new NavigationList(); - } + get => MyAvalonEditor.Document != null + ? _savedCarets.GetOrAdd(MyAvalonEditor.Document.FileName, () => new NavigationList()) + : new NavigationList(); } private bool _ignoreCaret = true;