cursor shape wrong with nvim #21736

Open
opened 2026-01-31 07:53:29 +00:00 by claunia · 0 comments
Owner

Originally created by @zgpio on GitHub (May 18, 2024).

Windows Terminal version

1.21.1272.0

Windows build number

No response

Other Software

NVIM v0.10.0-dev-3117+g4e5c633ed

Steps to reproduce

a.vim

let &g:statusline="%#Visual#%{'['.winnr().']'}%#Normal#
      \ %{(&previewwindow?'[preview] ':'').expand('%:p:~:.')}%m
      \ %=%{(winnr('$')==1 || winnr('#')!=winnr()) ? '['.(&filetype!=''?&filetype.',':'').(&fenc!=''?&fenc:&enc).','.&ff.']' : ''}
      \ %{printf('%'.(len(line('$'))+2).'d/%d',line('.'),line('$'))}"

" If you annotate this line, there won't be this problem
set noshowmode

  1. nvim -u a.vim
  2. press i and then press <esc>
  3. you can see the cursor did not turn into a square after press <esc>

Expected Behavior

No response

Actual Behavior

in reproduce

Originally created by @zgpio on GitHub (May 18, 2024). ### Windows Terminal version 1.21.1272.0 ### Windows build number _No response_ ### Other Software NVIM v0.10.0-dev-3117+g4e5c633ed ### Steps to reproduce a.vim ```vim let &g:statusline="%#Visual#%{'['.winnr().']'}%#Normal# \ %{(&previewwindow?'[preview] ':'').expand('%:p:~:.')}%m \ %=%{(winnr('$')==1 || winnr('#')!=winnr()) ? '['.(&filetype!=''?&filetype.',':'').(&fenc!=''?&fenc:&enc).','.&ff.']' : ''} \ %{printf('%'.(len(line('$'))+2).'d/%d',line('.'),line('$'))}" " If you annotate this line, there won't be this problem set noshowmode ``` 1. nvim -u a.vim 2. press `i` and then press `<esc>` 3. you can see the cursor did not turn into a square after press `<esc>` ### Expected Behavior _No response_ ### Actual Behavior in reproduce
claunia added the Issue-BugNeeds-Tag-Fix labels 2026-01-31 07:53:29 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21736