-
-
Save heavenshell/c6c6d019e2aa284623509b0dd106f634 to your computer and use it in GitHub Desktop.
Vim channel patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/channel.c b/src/channel.c | |
index 3b71472fd..9498e639a 100644 | |
--- a/src/channel.c | |
+++ b/src/channel.c | |
@@ -4151,7 +4151,8 @@ channel_select_check(int ret_in, void *rfds_in, void *wfds_in) | |
&& FD_ISSET(in_part->ch_fd, wfds)) | |
{ | |
channel_write_input(channel); | |
- FD_CLR(in_part->ch_fd, wfds); | |
+ if (in_part->ch_fd != INVALID_FD) | |
+ FD_CLR(in_part->ch_fd, wfds); | |
--ret; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
in/env python | |
# -*- coding: utf-8 -*- | |
import sys | |
import json | |
def main(): | |
lines = sys.stdin.read() | |
ret = { | |
'count': len(lines.replace('\n', '')), | |
} | |
sys.stdout.write(json.dumps(ret)) | |
if __name__ == '__main__': | |
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let s:save_cpo = &cpo | |
set cpo&vim | |
function s:callback(ch, msg) | |
echomsg a:msg | |
endfunction | |
function s:bug() | |
if exists('s:job') && job_status(s:job) != 'stop' | |
call job_stop(s:job) | |
endif | |
let file = expand('%:p') | |
let cmd = 'python /tmp/stdin.py' | |
let s:job = job_start(cmd, { | |
\ 'callback': {c, m -> s:callback(c, m)}, | |
\ 'in_io': 'buffer', | |
\ 'in_name': file, | |
\ }) | |
endfunction | |
autocmd BufWritePost * silent! call s:bug() | |
autocmd InsertLeave * silent! call s:bug() | |
let &cpo = s:save_cpo | |
unlet s:save_cpo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment