-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CompletionType::List does not support completion candidates that are shorter than the input #748
Comments
Not strictly related to the issue but to your remark:
|
Ok, if ( ( longestCommonPrefix > itemLength ) || ( completionsCount == 1 ) ) { And the associated comment perfectly matches your issue:
|
Could you please give #750 a try ? |
Version 13.0.0 released. |
Thank you! |
Thank you for maintaining this crate — we use it in Numbat and it works great.
We want to implement a feature where a user could type something like
\hbar
in the REPL, press Tab and it would be replaced byℏ
. This seems to work fine when usingCompletionType::Circular
, but it does not work forCompletionType::List
. Words will only be replaced if they are longer than the input. This is probably due to this check:rustyline/src/lib.rs
Line 154 in fafa0b9
Would it be possible to support this use case?
Remark: that check above should probably use
lcp.unicode_width()
instead oflcp.len()
(?).The text was updated successfully, but these errors were encountered: