mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 12:37:02 +00:00
If escape-time is 0, force to 1 instead - not waiting at all is asking
for problems on some platforms.
This commit is contained in:
@ -798,6 +798,8 @@ partial_key:
|
|||||||
|
|
||||||
/* Get the time period. */
|
/* Get the time period. */
|
||||||
delay = options_get_number(global_options, "escape-time");
|
delay = options_get_number(global_options, "escape-time");
|
||||||
|
if (delay == 0)
|
||||||
|
delay = 1;
|
||||||
tv.tv_sec = delay / 1000;
|
tv.tv_sec = delay / 1000;
|
||||||
tv.tv_usec = (delay % 1000) * 1000L;
|
tv.tv_usec = (delay % 1000) * 1000L;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user