Fix infobar prompt

This commit is contained in:
Zachary Yedidia
2019-01-02 20:57:27 -05:00
parent e97005f05d
commit 80fe992957
3 changed files with 6 additions and 5 deletions

View File

@@ -725,7 +725,7 @@ func (h *BufHandler) SelectAll() bool {
// OpenFile opens a new file in the buffer
func (h *BufHandler) OpenFile() bool {
InfoBar.Prompt("> open ", func(resp string, canceled bool) {
InfoBar.Prompt("> ", "open ", func(resp string, canceled bool) {
if !canceled {
HandleCommand(resp)
}
@@ -889,7 +889,7 @@ func (h *BufHandler) ShellMode() bool {
// CommandMode lets the user enter a command
func (h *BufHandler) CommandMode() bool {
InfoBar.Prompt("> ", func(resp string, canceled bool) {
InfoBar.Prompt("> ", "", func(resp string, canceled bool) {
if !canceled {
HandleCommand(resp)
}