Mercurial > vim
diff runtime/doc/eval.txt @ 8291:ac0c43e7af20 v7.4.1438
commit https://github.com/vim/vim/commit/c7f0ebc6d1e1cdaed816b88a0d6092c5ace615eb
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 27 21:10:09 2016 +0100
patch 7.4.1438
Problem: Can't get buffer number of a channel.
Solution: Add ch_getbufnr().
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 27 Feb 2016 21:15:04 +0100 |
parents | e05e28dcb590 |
children | 88207f4b861a |
line wrap: on
line diff
--- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1822,6 +1822,7 @@ ch_evalexpr( {channel}, {expr} [, {optio any evaluate {expr} on JSON {channel} ch_evalraw( {channel}, {string} [, {options}]) any evaluate {string} on raw {channel} +ch_getbufnr( {channel}, {what}) Number get buffer number for {channel}/{what} ch_getjob( {channel}) Job get the Job of {channel} ch_log( {msg} [, {channel}]) none write {msg} in the channel log file ch_logfile( {fname} [, {mode}]) none start logging channel activity @@ -2721,6 +2722,13 @@ ch_evalraw({channel}, {string} [, {optio {only available when compiled with the |+channel| feature} +ch_getbufnr({channel}, {what}) *ch_getbufnr()* + Get the buffer number that {channel} is using for {what}. + {what} can be "err" for stderr, "out" for stdout or empty for + socket output. + Returns -1 when there is no buffer. + {only available when compiled with the |+channel| feature} + ch_getjob({channel}) *ch_getjob()* Get the Job associated with {channel}. If there is no job calling |job_status()| on the returned Job