mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Fix double prefix key regression
This commit is contained in:
parent
e2e974958e
commit
2915d26a19
1 changed files with 7 additions and 1 deletions
|
|
@ -306,10 +306,16 @@ void *tty_stdin_input_thread(void *arg)
|
|||
|
||||
if (previous_char == option.prefix_code)
|
||||
{
|
||||
if (input_char == option.prefix_code)
|
||||
{
|
||||
previous_char = 0;
|
||||
continue;
|
||||
}
|
||||
|
||||
switch (input_char)
|
||||
{
|
||||
case KEY_Q:
|
||||
exit(EXIT_FAILURE);
|
||||
exit(EXIT_SUCCESS);
|
||||
break;
|
||||
case KEY_SHIFT_F:
|
||||
tio_printf("Flushed data I/O channels")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue