mirror of https://github.com/sbt/sbt.git
JLine 3 automatically appends a space character to the completion candidate unless you tell it not to by setting its 'complete' parameter. This behavior is generally nice because it will automatically complete something like 'foo/testO<TAB>' to 'foo/testOnly ' which allows the user to start typing the testname without having to enter space. It does, however, break scripted completions because it will complete 'scripted wat<TAB>' to 'scripted watch/ ' This commit updates the custom completer to append a " " to the initial completions and check if there are any additional completions available. If so, we set the complete flag to true and jline will append a space to the input when the user presses <TAB> or <ENTER>. Otherwise the old jline2 behavior where no spaces are ever appended is preserved. |
||
|---|---|---|
| .. | ||
| src | ||
| NOTICE | ||