dotfiles bugabingas dorkfiles
owned by bugabinga
README Source History Refs Compare Notes Search fix(cmdline): refresh popupmenu border highlight on selection change c924539f0e8662dde17cfb274de1fef460414dee
Oliver Jan Krylow <oliver@bugabinga.net > · 15 Apr 2026
unsigned
Browse files Compare with HEAD
Previously popupmenu_select only updated cursor position but did not
refresh the winhighlight. Now it re-applies the border highlight
based on the stored format type when cycling through options.
Changed files (1) neovim/lua/bugabinga/cmdline/popupmenu.lua Modified 164 164 state.selected
= selected
165 + local current_fmt
= format.border_highlight_map[state.format_type]
or format.border_highlight_map.cmdline
166 + vim.wo[state.window].winhighlight
= string .
format (
167 + 'Normal:Pmenu,CursorLine:PmenuSel,FloatBorder:%s,FloatBorderCorner:%s' ,
168 + current_fmt.border, current_fmt.corner
165 170 if selected
>= 0 and selected
< # state.items
then 166 171 if state.above
then 167 172 local reversed_idx
= # state.items
- 1 - selected