Fix bisect script run and level validators
This commit is contained in:
@@ -369,7 +369,12 @@ fun GitHugApp() {
|
||||
if (token.isBlank() && !isCdCompletion) return
|
||||
|
||||
val candidates = runtime.completionCandidates(currentLevel, repo, directoriesOnly = isCdCompletion)
|
||||
val matches = candidates.sorted().filter { it.startsWith(token) }
|
||||
val matches = contextualCompletionCandidates(
|
||||
candidates = candidates,
|
||||
commandBeforeToken = beforeCursor.substring(0, tokenStart),
|
||||
token = token,
|
||||
directoriesOnly = isCdCompletion,
|
||||
)
|
||||
if (matches.isEmpty()) return
|
||||
|
||||
val replacement = if (matches.size == 1) matches.first() else commonPrefix(matches)
|
||||
|
||||
Reference in New Issue
Block a user