Skip to content

Conversation

@blindFS
Copy link
Contributor

@blindFS blindFS commented Oct 25, 2025

Fixes a bug described here.

Update:

Fixes nushell/nushell#15535

Comment on lines -184 to -187
lhs.make_ascii_lowercase();
rhs.make_ascii_lowercase();

lhs != rhs
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this should be case sensitive, correct me if I'm wrong.

Comment on lines 348 to 353
let entered_input = &editor.get_buffer()[start..end];
let extends_input = matching
.to_ascii_lowercase()
.contains(&entered_input.to_ascii_lowercase())
&& matching != entered_input;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

And this should be case insensitive...

@blindFS blindFS force-pushed the fix_find_common_prefix branch from 25f01b1 to 3d9f5e2 Compare November 6, 2025 06:16
@blindFS
Copy link
Contributor Author

blindFS commented Nov 10, 2025

@ysthakur Would you please take a look at this when you get time?

Copy link
Member

@ysthakur ysthakur left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM, just need a couple more test cases

Copy link
Member

Choose a reason for hiding this comment

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

Unrelated to this PR, but we should make a .gitattributes and add this as a generated file in there, not sure how we haven't done that until now

Copy link
Member

@ysthakur ysthakur left a comment

Choose a reason for hiding this comment

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

LGTM. The new unicase dependency only adds 23.5 KiB, which I think is acceptable

@ysthakur ysthakur merged commit 7888dbf into nushell:main Nov 13, 2025
6 checks passed
@ysthakur ysthakur added A-Completions Area: Tab completion and inline hint completions bug Something isn't working labels Nov 13, 2025
@blindFS blindFS deleted the fix_find_common_prefix branch November 13, 2025 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Completions Area: Tab completion and inline hint completions bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Partial completion doesn't complete shared prefix with backticks

3 participants