fix tab autocomplete on zsh

This commit is contained in:
Liam Galvin 2018-11-30 22:19:45 +00:00
parent f0d22e193a
commit 1d988f1189
1 changed files with 3 additions and 11 deletions

View File

@ -203,17 +203,9 @@ func (gui *GUI) key(w *glfw.Window, key glfw.Key, scancode int, action glfw.Acti
})
}
case glfw.KeyTab:
if gui.terminal.IsApplicationCursorKeysModeEnabled() {
gui.terminal.Write([]byte{
0x1b,
'O',
'I',
})
} else {
gui.terminal.Write([]byte{
0x09,
})
}
gui.terminal.Write([]byte{
0x09,
})
case glfw.KeyEnter:
gui.terminal.Write([]byte{
0x0d,