Skip to content

fix: align completion matches containing terminal sequences - #2511

Merged
joelim-work merged 1 commit into
gokcehan:masterfrom
valoq:fix-length
Apr 13, 2026
Merged

fix: align completion matches containing terminal sequences#2511
joelim-work merged 1 commit into
gokcehan:masterfrom
valoq:fix-length

Conversation

@valoq

@valoq valoq commented Apr 12, 2026

Copy link
Copy Markdown
Contributor

the sanitized file name can have a different displayed size which needs to be handled the same as in win.print

@joelim-work joelim-work changed the title fix: measure filename length correctly fix: align completion matches containing terminal sequences Apr 13, 2026

@joelim-work joelim-work left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for the patch.

@joelim-work

Copy link
Copy Markdown
Contributor

FYI, this applies to any kind of completion match but probably the easiest way to reproduce it is to create a filename containing terminal sequences and then tab complete it (e.g. :select <tab>).

@joelim-work
joelim-work merged commit f83a0d0 into gokcehan:master Apr 13, 2026
32 checks passed
@joelim-work joelim-work added the fix Pull requests that fix existing behavior label Apr 13, 2026
@joelim-work joelim-work added this to the r42 milestone Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Pull requests that fix existing behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants