0
0
mirror of https://github.com/vim/vim.git synced 2025-10-24 08:54:47 -04:00

patch 9.1.1720: using gettimeofday() for parsing OSC responses

Problem:  Using gettimeofday() for parsing OSC responses
Solution: Use ELAPSED_ macros instead (Foxe Chen).

closes: #18165

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Foxe Chen
2025-08-31 19:40:24 +02:00
committed by Christian Brabandt
parent 2035c74574
commit 6278f1a10a
3 changed files with 24 additions and 23 deletions

View File

@@ -1290,19 +1290,6 @@ typedef struct
#endif
} tasave_T;
// Holds state for current OSC response.
typedef struct
{
int processing; // If we are in the middle of an OSC response
char_u start_char; // First char in the OSC response
garray_T buf; // Buffer holding the OSC response, to be
// placed in the "v:termosc" vim var.
struct timeval start; // Set at the beginning of an OSC response.
// Used to timeout after a set amount of
// time.
} oscstate_T;
/*
* Used for conversion of terminal I/O and script files.
*/