mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-29 08:42:28 +00:00
Fix build break in MODE=asan
This commit is contained in:
parent
c9f966d73c
commit
15c59e716f
2 changed files with 5 additions and 4 deletions
5
third_party/linenoise/linenoise.c
vendored
5
third_party/linenoise/linenoise.c
vendored
|
@ -16,7 +16,6 @@
|
|||
│ - Add CTRL-R search │
|
||||
│ - Support unlimited lines │
|
||||
│ - React to terminal resizing │
|
||||
│ - Don't generate .data section │
|
||||
│ - Support terminal flow control │
|
||||
│ - Make history loading 10x faster │
|
||||
│ - Make multiline mode the only mode │
|
||||
|
@ -686,8 +685,7 @@ int linenoiseEnableRawMode(int fd) {
|
|||
return 0;
|
||||
}
|
||||
}
|
||||
errno = ENOTTY;
|
||||
return -1;
|
||||
return enotty();
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
|
@ -1603,6 +1601,7 @@ static size_t linenoiseEscape(char *d, const char *s, size_t n) {
|
|||
unsigned c, w, l;
|
||||
for (p = d, l = i = 0; i < n; ++i) {
|
||||
switch ((c = s[i] & 255)) {
|
||||
CASE('\e', w = READ16LE("\\e"));
|
||||
CASE('\a', w = READ16LE("\\a"));
|
||||
CASE('\b', w = READ16LE("\\b"));
|
||||
CASE('\t', w = READ16LE("\\t"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue