mirror of
https://github.com/vim/vim.git
synced 2025-10-22 08:34:29 -04:00
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>
This commit is contained in:
committed by
Christian Brabandt
parent
b7fc24d3a3
commit
fb45809f01
@@ -1,4 +1,4 @@
|
||||
*insert.txt* For Vim version 9.1. Last change: 2025 Jul 05
|
||||
*insert.txt* For Vim version 9.1. Last change: 2025 Jul 17
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -1258,13 +1258,16 @@ of values:
|
||||
Example: >
|
||||
:set completepopup=height:10,width:60,highlight:InfoPopup
|
||||
|
||||
When the "align" value is "item" then the popup is positioned close to the
|
||||
selected item. Changing the selection will also move the popup. When "align"
|
||||
is "menu" then the popup is aligned with the top of the menu if the menu is
|
||||
below the text, and the bottom of the menu otherwise.
|
||||
When `"align"` is set to `"item"`, the popup is positioned near the selected
|
||||
item, and moves as the selection changes.
|
||||
When set to `"menu"`, the popup aligns with the top of the menu (if the menu
|
||||
appears below the text), or with the bottom (if the menu appears above).
|
||||
|
||||
After the info popup is created it can be found with |popup_findinfo()| and
|
||||
properties can be changed with |popup_setoptions()|.
|
||||
If the 'mouse' is enabled, a close button and resize handle will appear on the
|
||||
popup border.
|
||||
|
||||
After creation, the info popup can be located with |popup_findinfo()| and
|
||||
modified using |popup_setoptions()|.
|
||||
|
||||
*complete-popuphidden*
|
||||
If the information for the popup is obtained asynchronously, use "popuphidden"
|
||||
|
@@ -1,4 +1,4 @@
|
||||
*tabpage.txt* For Vim version 9.1. Last change: 2025 Jul 01
|
||||
*tabpage.txt* For Vim version 9.1. Last change: 2025 Jul 17
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -363,6 +363,9 @@ A "+" will be shown for a tab page that has a modified window. The number of
|
||||
windows in a tabpage is also shown. Thus "3+" means three windows and one of
|
||||
them has a modified buffer.
|
||||
|
||||
An "X" (close button) will appear in the last column when multiple tabs are
|
||||
open, but only if the 'mouse' is enabled.
|
||||
|
||||
The 'tabline' option allows you to define your preferred way to tab pages
|
||||
labels. This isn't easy, thus an example will be given here.
|
||||
|
||||
|
@@ -41726,6 +41726,8 @@ Others: ~
|
||||
- the configure script will favor using GTK3 over GTK2 when auto-detecting the
|
||||
gui toolkit
|
||||
- |gv| works in operator pending mode and does not abort
|
||||
- The close button shown in the non-GUI 'tabline' will only be visible if the
|
||||
'mouse' option contains either "a" or any of the flags "n", "v", or "i".
|
||||
|
||||
*added-9.2*
|
||||
Added ~
|
||||
|
Reference in New Issue
Block a user