-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Closed
Copy link
Labels
Description
Steps to reproduce
- Create init file ('init-winscrolled-winwidth.vim' in this example') with the following contents:
let g:winscrolled_events = []
au WinScrolled * let g:winscrolled_events = g:winscrolled_events + [expand('<amatch>')]- Run
vim -u init-winscrolled-winwidth.vim. - Create new window with vertical split (
<C-w>v). - Switch back and forth with
<C-w>l<C-w>h. This consumesWinScrolledevents resulting from initial vertical split. :echo g:winscrolled_events. It should show['1001', '1000'].:set winwidth=10000. Current window should occupy maximum width, i.e. it was resized.- Again switch windows back and forth. Each switch leads to resizing of current window to maximum width.
:echo g:winscrolled_events. It should show['1001', '1000', '1001', '1000'].- And again switch back and forth. Each switch still resizes window.
:echo g:winscrolled_events. It now shows the same history as after previousecho, but it should have added two more window numbers.
Note: same applies to winheight and horizontal split.
Expected behaviour
WinScrolled event is activated after any window resize, including resulting from winwidth and winheight.
Version of Vim
9.0.813
Environment
OS: EndeavourOS Linux x86_64, 6.0.8-arch1-1
Terminal: st
$TERM: st-256color
Shell: zsh 5.9
Logs and stack traces
No response
Reactions are currently unavailable