mirror of
https://github.com/neovim/neovim.git
synced 2024-09-17 20:58:20 -04:00
Compare commits
3 Commits
66284e7fad
...
7599cc37cd
Author | SHA1 | Date | |
---|---|---|---|
|
7599cc37cd | ||
|
9054993842 | ||
|
5dad85b977 |
@ -410,10 +410,11 @@ int start_driver_ti(TermKey *tk, void *info)
|
|||||||
// Can't call putp or tputs because they suck and don't give us fd control
|
// Can't call putp or tputs because they suck and don't give us fd control
|
||||||
len = strlen(start_string);
|
len = strlen(start_string);
|
||||||
while (len) {
|
while (len) {
|
||||||
size_t written = (size_t)write(tk->fd, start_string, (unsigned)len);
|
ssize_t result = write(tk->fd, start_string, (unsigned)len);
|
||||||
if (written == (size_t)-1) {
|
if (result < 0) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
size_t written = (size_t)result;
|
||||||
start_string += written;
|
start_string += written;
|
||||||
len -= written;
|
len -= written;
|
||||||
}
|
}
|
||||||
@ -448,10 +449,11 @@ int stop_driver_ti(TermKey *tk, void *info)
|
|||||||
// Can't call putp or tputs because they suck and don't give us fd control
|
// Can't call putp or tputs because they suck and don't give us fd control
|
||||||
len = strlen(stop_string);
|
len = strlen(stop_string);
|
||||||
while (len) {
|
while (len) {
|
||||||
size_t written = (size_t)write(tk->fd, stop_string, (unsigned)len);
|
ssize_t result = write(tk->fd, stop_string, (unsigned)len);
|
||||||
if (written == (size_t)-1) {
|
if (result < 0) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
size_t written = (size_t)result;
|
||||||
stop_string += written;
|
stop_string += written;
|
||||||
len -= written;
|
len -= written;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user