mirror of
https://github.com/zyedidia/micro
synced 2024-09-30 21:23:41 +00:00
Fix autocompletion using a slash
This commit is contained in:
parent
e2079ac88e
commit
f3f14193c2
|
@ -186,7 +186,11 @@ func (m *Messenger) Prompt(prompt, historyType string, completionType Completion
|
|||
}
|
||||
}
|
||||
if len(suggestions) == 1 {
|
||||
m.response = strings.Join(dirs[:len(dirs)-1], "/") + "/" + suggestions[0]
|
||||
if len(dirs) > 1 {
|
||||
m.response = strings.Join(dirs[:len(dirs)-1], "/") + "/" + suggestions[0]
|
||||
} else {
|
||||
m.response = suggestions[0]
|
||||
}
|
||||
m.cursorx = Count(m.response)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue