Skip to content

Fix group switching with identical colors - #585

Open
oiahoon wants to merge 1 commit into
Aloxaf:masterfrom
oiahoon:fix/identical-group-colors
Open

Fix group switching with identical colors#585
oiahoon wants to merge 1 commit into
Aloxaf:masterfrom
oiahoon:fix/identical-group-colors

Conversation

@oiahoon

@oiahoon oiahoon commented Jul 16, 2026

Copy link
Copy Markdown

Summary

  • preserve a hidden numeric group identifier after completion-list sorting
  • use that identifier for group reload filtering and exact active-header styling
  • keep ungrouped reset-colored completion lists unchanged

Testing

  • reproduced the failure with identical group-colors before the change
  • cd test && zsh -f runtests.zsh fzftab.ztst with the pure Zsh implementation
  • zsh -fc 'source ./fzf-tab.zsh && build-fzf-tab-module'
  • cd test && zsh -f runtests.zsh fzftab.ztst with the binary module loaded
  • zsh -n lib/-ftb-generate-complist lib/ftb-switch-group test/fzftab.ztst

Fixes #581

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Group switching fails with identical group-colors ANSI reset sequences

1 participant