mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-05 22:50:21 +09:00
Fix autocompletion using a slash
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user