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
about command completion #654
Comments
IMHO the problem is in your |
@mattirn Yes, originally I thought so, but I debugged to the |
Added ColonCommandCompletionTest hopefully it will help you to resolve scala/bug#12264 :) |
@mattirn The behavior is different. |
jline3/reader/src/main/java/org/jline/reader/impl/DefaultParser.java Lines 260 to 280 in d66e734
else , So variable current is not reset.
|
That's the way it has been designed and you cannot change this without breaking everything. |
The only thing we can do is to append ":" to the front of the candidates so that the match can be found. |
Here is the scala programming language source code, repl module code.
Construct the part of Jline3
This is the parser implementation
CommandParser
is a class from Jline3. Now there are some problems, but I don't know if it has something to do with it.The phenomenon is:
: p
will showpaste
andpower
, but:p
will not, if there is not have a space.After my test, it seems to be related to this method.
It looks strange. Is it the wrong way I use it? Or is there a lack of configuration?
What we expect is that
:p
can be displayed correctly, not: p
The text was updated successfully, but these errors were encountered: