Fix SnapOnOutput not always snapping (#19247)

`IsOn` is the blinker on/off state, which `IsVisible`
is the actual cursor visibility on/off state.

## Validation Steps Performed
* Run bash/zsh in WSL
* (Repeatedly) Quickly scroll right and press A-Z
* Scrolls to the left 
This commit is contained in:
Leonard Hecker 2025-08-15 22:34:29 +02:00 committed by GitHub
parent 1b2aad6504
commit e97388cb27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1720,7 +1720,7 @@ void SCREEN_INFORMATION::SnapOnInput(const WORD vkey)
void SCREEN_INFORMATION::_makeCursorVisible()
{
if (_textBuffer->GetCursor().IsOn())
if (_textBuffer->GetCursor().IsVisible())
{
MakeCursorVisible(_textBuffer->GetCursor().GetPosition());
}