[vim/vim] the completion menus are unusable when the terminal has no colors (PR #20803)

1 view
Skip to first unread message

h_east

unread,
5:34 AM (17 hours ago) 5:34 AM
to vim/vim, Subscribed
Problem:  When the terminal reports no colors ("t_Co" is 0 or 1) the
          insert mode completion popup menu is not shown at all, while
          the command line completion popup menu ('wildoptions' contains
          "pum") is shown.  In 'wildmenu' completion the current match
          cannot be told apart from the other matches.
Solution: Show the insert mode completion popup menu regardless of the
          number of colors and add "term" attributes to the default
          highlighting of Pmenu, PmenuSel and PmenuThumb.  The wildmenu
          is drawn with the attributes of the status line, which is
          reversed, and on most terminals the standout mode is the same
          as the reverse mode, thus use the underline mode for the
          default highlighting of WildMenu.

fixes: #20800


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/20803

Commit Summary

  • 44dbe72 the completion menus are unusable when the terminal has no colors

File Changes

(5 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20803@github.com>

Reply all
Reply to author
Forward
0 new messages