Expand tilde during autocompletion (#1246)

This commit is contained in:
Joe Lim authored and GitHub committed 2023-05-21 15:09:28 +03:00
1 parent 346c439f76
commit 5b934c2b91
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -947,6 +947,11 @@ func doComplete(app *app) (matches []string) {
func menuComplete(app *app, dir int) {
if !app.menuCompActive {
toks := tokenize(string(app.ui.cmdAccLeft))
for i, tok := range toks {
toks[i] = replaceTilde(tok)
}
app.ui.cmdAccLeft = []rune(strings.Join(toks, " "))
app.ui.cmdTmp = app.ui.cmdAccLeft
app.menuComps = doComplete(app)
if len(app.menuComps) > 1 {