Skip to content

Pull requestt#1568

Open
roycrisses wants to merge 4 commits intoJetBrains:masterfrom
roycrisses:master
Open

Pull requestt#1568
roycrisses wants to merge 4 commits intoJetBrains:masterfrom
roycrisses:master

Conversation

@roycrisses
Copy link

No description provided.

roycrisses and others added 4 commits November 23, 2025 14:32
This commit addresses several potential runtime exceptions and compilation
warnings across the codebase, with a focus on file handling and stability:

- Standardized "last file" index to 999 in FileGroup.kt and improved context
  handling.
- Added boundary checks to prevent IndexOutOfBoundsException in VimFileBase.kt
  and VimSearchHelperBase.kt.
- Fixed potential division by zero in FileGroup.kt's percentage calculation.
- Resolved a Java type mismatch in OptionGroup.kt that would become an error
  in future Kotlin versions.
- Added @ConsistentCopyVisibility to RequiredShortcut.kt for Kotlin 2.0+
  compatibility.
- Improved overall stability and defensive programming in the file group.

Tests passed for FileCommand and InsertFilenameUnderCaretAction.

Co-authored-by: roycrisses <167697490+roycrisses@users.noreply.github.com>
…-9886311746506745928

Fix file handling stability issues and compilation warnings
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