basic command completion for single match

This commit is contained in:
Gokcehan committed 2016-08-15 23:29:37 +03:00
1 parent e45562b282
commit 656a9c837a
2 files changed
+113

No files matched your search

+2
View File
@@ -445,6 +445,8 @@ func (ui *UI) prompt(pref string) string {
termbox.SetCursor(win.x, win.y)
termbox.Flush()
return string(acc)
case termbox.KeyTab:
acc = compCmd(acc)
case termbox.KeyEsc:
return ""
}