]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1562: close button always visible in the 'tabline' v9.1.1562
authorGirish Palya <girishji@gmail.com>
Thu, 17 Jul 2025 19:56:16 +0000 (21:56 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 17 Jul 2025 19:56:16 +0000 (21:56 +0200)
commitfb45809f01fa0c8e7ea1eb9bb26cda04d24d3fe5
treeaf9b34bfcf85ca8a124c700912eed5ab422b62cd
parentb7fc24d3a3d21ccf1461c703eb7ff07ef3994c54
patch 9.1.1562: close button always visible in the 'tabline'

Problem:  close button "X" is visible in the non-GUI 'tabline', even
          when the mouse is disabled
Solution: only show the button when 'mouse' contains any of the flags
          "anvi" (Girish Palya)

The tabline always displays an "X" (close) button, and the info popup
shows both a close button and a resize handle—even when the mouse is
disabled. These UI elements are only actionable with the mouse and serve
no purpose for keyboard users who disable the mouse. Displaying
non-functional, clickable elements in a non-GUI environment is
misleading and adds unnecessary visual clutter.

So remove the close button and resize handle when the mouse is disabled.
They appear again when mouse is enabled.

closes: #17765

Signed-off-by: Girish Palya <girishji@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/insert.txt
runtime/doc/tabpage.txt
runtime/doc/version9.txt
src/optionstr.c
src/popupwin.c
src/screen.c
src/testdir/dumps/Test_popupwin_info_border_mouse_1.dump [new file with mode: 0644]
src/testdir/dumps/Test_popupwin_info_border_mouse_2.dump [new file with mode: 0644]
src/testdir/test_popupwin.vim
src/testdir/test_tabline.vim
src/version.c