kitten @ cmd: Dont generate key release events

We dont need them and they sometimes can spill over into the prompt if
the command is very fast.
This commit is contained in:
Kovid Goyal
2023-01-23 16:18:46 +05:30
parent cc1f0bc3fe
commit 97467acb1f
4 changed files with 16 additions and 6 deletions

View File

@@ -26,7 +26,7 @@ func is_stream_response(serialized_response []byte) bool {
func do_chunked_io(io_data *rc_io_data) (serialized_response []byte, err error) {
serialized_response = make([]byte, 0)
lp, err := loop.New(loop.NoAlternateScreen, loop.NoRestoreColors)
lp, err := loop.New(loop.NoAlternateScreen, loop.NoRestoreColors, loop.OnlyDisambiguateKeys)
if err != nil {
return
}