mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-24 14:22:28 +00:00
Fix select() on Windows for timeout (#141)
This commit is contained in:
parent
3085ac7837
commit
50937be752
6 changed files with 108 additions and 36 deletions
3
third_party/python/Programs/python.c
vendored
3
third_party/python/Programs/python.c
vendored
|
@ -778,14 +778,13 @@ TerminalCompletion(const char *p, linenoiseCompletions *c)
|
|||
}
|
||||
|
||||
static char *
|
||||
TerminalHint(const char *p, int *color, int *bold)
|
||||
TerminalHint(const char *p, const char **ansi1, const char **ansi2)
|
||||
{
|
||||
char *h = 0;
|
||||
linenoiseCompletions c = {0};
|
||||
TerminalCompletion(p, &c);
|
||||
if (c.len == 1) {
|
||||
h = strdup(c.cvec[0] + strlen(p));
|
||||
*bold = 2;
|
||||
}
|
||||
linenoiseFreeCompletions(&c);
|
||||
return h;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue