|
|
@ -294,9 +294,11 @@ func handleTab() error { |
|
|
|
// now call get the list of all possible cantidates that have that as a prefix
|
|
|
|
// now call get the list of all possible cantidates that have that as a prefix
|
|
|
|
resultSlice := generateTabCompletionSlice(s) |
|
|
|
resultSlice := generateTabCompletionSlice(s) |
|
|
|
lcp := longestCommonPrefix(resultSlice) |
|
|
|
lcp := longestCommonPrefix(resultSlice) |
|
|
|
|
|
|
|
if lcp != "" { |
|
|
|
remainder := stringRemainder(s, lcp) |
|
|
|
remainder := stringRemainder(s, lcp) |
|
|
|
writeToView("Input", remainder) |
|
|
|
writeToView("Input", remainder) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
return nil |
|
|
|
return nil |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|