Closed radiaku closed 2 months ago
So, I can't see the scrollbar in that video, but my psychic debugging is telling me that you're still in alternate scroll mode for some reason. That's a special mode where mouse wheels send up and down keystrokes instead of mouse wheel events. But it's only supposed to be active when in the "alternate screen buffer" (which is used by full screen apps like vim
).
You could probably check that easily on your side by seeing if there's a scrollbar enabled in the "main" buffer after exiting nvim
Hello @zadjii-msft , I think this is true. I still cant replicate that, if not long run on nvim.
Btw if in case I still on alternate scroll mode after exiting nvim. can
How I can exit ( disable ) it? maybe adding some function on $profile ?? or any function that help?
Update: Yeah true the scrollbar is not showing
https://github.com/user-attachments/assets/bc841ba1-972a-44ee-8dd4-1ca0171c1e1a
@radiaku If you're using PowerShell, you should be able to get the terminal to return to the main buffer by entering this at the prompt:
"`e[?1049l"
Once you're back in the main buffer the scrollbar should appear again, and the mouse wheel should work as you expect.
@j4james , Thanks for your help. its working like a charm.
For short I create this function on $PROFILE and call cas for short.
function cas {
# Clear Alternate Screen
# https://github.com/microsoft/terminal/issues/17739
[System.Console]::Write("`e[?1049l")
}
I leave this one on here if anybody need this.
Windows Terminal version
1.20.11781.0
Windows build number
10.0.22631.4037
Other Software
Neovim 0.10.1 Powershell 7.4.4 oh-my-posh 23.6.3
Steps to reproduce
Opening nvim editing file multiple file, exit. then running nvim and then exit. couple times. I can scroll up but its become scroll history
Expected Behavior
scroll to up screen
Actual Behavior
becoming scroll up command line ( history )
check the video,
https://github.com/user-attachments/assets/009224fe-a452-401f-b9d9-b087126fcff6
this my $profile