Maximus5 / ConEmu

Customizable Windows terminal with tabs, splits, quake-style, hotkeys and more
https://conemu.github.io/
BSD 3-Clause "New" or "Revised" License
8.6k stars 573 forks source link

VIM scrolling issue in git-bash.exe - terminal size does not seem to be correct #2595

Open bjeong-tibco opened 1 week ago

bjeong-tibco commented 1 week ago

Versions

ConEmu build: 230724/x64 OS version: Windows 11/x64 Used shell version: git-bash

Problem description

Vim scrolling (arrow keys up and down, Ctrl-F/Ctrl-B, etc...) messes up the screen with VIM status line getting relocated randomly along with the entire content in chaotic manner. One strange thing about it is that once you resize the ConEmu window (while the VIM in session), the issue seem get corrected. But once you exit and reedit the file, the same issue is observed. It almost seems like the initial terminal size (lines and columns) are not correctly deciphered for some reason.

Steps to reproduce

  1. Edit a file with sufficient lines (more than the screen can display) with VIM editor.
  2. Scroll down and up with arrow keys, Ctrl-F, Ctrl-B, got to top, bottom, etc...
  3. Observe the display gets messed up and get worse as you navigate up and down
  4. Resize ConEmu window, then the screen redraws itself, then all up and down navigation seems to work properly.
  5. Exit the editor, and restart the editor with the same file, and the same problem returned until you resize the ConEmnu window again.

I tried "run buffer height" on and off, which does not have any effects. All other settings remain as installed.

bjeong-tibco commented 1 week ago

image A sample screenshot. Relative line numbers are used, but I turned it off which did not help.