Skip to content

Fix a crash in _makeCursorVisible - #19329

Merged
Leonard Hecker (lhecker) merged 3 commits into
mainfrom
dev/lhecker/19325-make-cursor-visible-crash
Sep 10, 2025
Merged

Leonard Hecker (lhecker) merged 3 commits into
mainfrom
dev/lhecker/19325-make-cursor-visible-crash

Conversation

@lhecker

@lhecker Leonard Hecker (lhecker) commented Sep 8, 2025 •

Copy link
Copy Markdown
Member

Fixes the crash and also makes SnapOnOutput a bit nicer.

Closes #19325

Validation Steps Performed

  • Launch vim in WSL
  • Exit
  • No crash ✅

Comment thread src/host/screenInfo.hpp Resolved
Comment thread src/host/screenInfo.hpp Resolved
Co-authored-by: Dustin L. Howett <[email protected]>
Comment thread src/host/screenInfo.hpp
{
~SnapOnScopeExit()
{
if (self)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh wait. i can just return SnapOnOutput{nullptr} if the velocity feature is off. lol sorry.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh true, I even had that in mind when I wrote that. 😅

@DHowett

Copy link
Copy Markdown
Member

now, does it actually fix 19325 :D

Dustin L. Howett (DHowett) pushed a commit that referenced this pull request Sep 16, 2025
Fixes the crash and also makes `SnapOnOutput` a bit nicer.

Closes #19325

## Validation Steps Performed
* Launch vim in WSL
* Exit
* No crash ✅

(cherry picked from commit 3849321)
Service-Card-Id: PVTI_lADOAF3p4s4BBcTlzgegVZ8
Service-Version: 1.24
@DHowett
Dustin L. Howett (DHowett) deleted the dev/lhecker/19325-make-cursor-visible-crash branch November 20, 2025 19:46
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.

crash on startup in OpenConsole!SCREEN_INFORMATION::_makeCursorVisible

2 participants