Merge pull request #97 from liamg/fix-autocomplete-zsh

Fix tab autocomplete on zsh
This commit is contained in:
Liam Galvin 2018-11-30 22:21:35 +00:00 committed by GitHub
commit 70c74b0411
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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,