Expand tilde during autocompletion (#1246)
This commit is contained in:
1 parent
346c439f76
commit
5b934c2b91
2 files changed
+6
-1
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user