Skip to content

New test 2 - #12

Merged
nikryden merged 4 commits into
masterfrom
newTest-2
Mar 12, 2026
Merged

nikryden merged 4 commits into
masterfrom
newTest-2

Conversation

@nikryden

Copy link
Copy Markdown
Owner

No description provided.

- Add early exit when displayedLines array is empty to prevent Math.Clamp exception
- Add safety check for empty _originalLineOffsets collection
- Add bounds validation for selectedStartOffset to prevent negative values
- Prevents crash when LogEditor.Text transitions to empty state during filtering

Root cause: When currentDisplayedText is empty, displayedLines.Length becomes 0,
causing Math.Clamp(value, 0, -1) to throw ArgumentException where min > max.
This occurred during ApplySearchFilter -> LogText update -> caret position change -> UpdateLookingGlass.
- Add Window_StateChanged event handler to MainWindow
- Adjust MainGrid.Margin to (7) when maximized to compensate for Windows positioning
- Remove CornerRadius when maximized to prevent rendering artifacts
- Restore original values when returning to normal state

Root cause: With AllowsTransparency=True and custom WindowChrome, Windows pushes
the maximized window slightly outside screen bounds, causing the StatusBar at
Grid.Row=6 to be clipped below the visible area. The increased margin compensates
for this automatic positioning.
- Add LogEditorFontSize, LookingGlassFontSize, and FontSizeWheelStep to AppSettings
- Add corresponding properties to SettingsViewModel
- Enable persisting font size preferences across application sessions
- Default values: LogEditor=12.0, LookingGlass=10.0, WheelStep=1.0
- Add new 'Shortcuts' tab in SettingsWindow
- Document all common keyboard shortcuts (Ctrl+R, Ctrl+Shift+R, F3, etc.)
- Add font size wheel step description in Looking Glass settings
- Improve user discoverability of application features
@nikryden
nikryden merged commit ff01a67 into master Mar 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant