diff options
author | Lucas Hoffmann <l-m-h@web.de> | 2015-05-19 16:11:32 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-06-21 00:34:51 -0400 |
commit | 7e7d78b2a60af64593c989c407bde977c9cb0233 (patch) | |
tree | 56350c1aac41fd3ffc107327b710e1b0bc7650fd /runtime | |
parent | 9ebb5c681b92c3c26171aa5514cd18a17dd62bad (diff) | |
download | rneovim-7e7d78b2a60af64593c989c407bde977c9cb0233.tar.gz rneovim-7e7d78b2a60af64593c989c407bde977c9cb0233.tar.bz2 rneovim-7e7d78b2a60af64593c989c407bde977c9cb0233.zip |
doc: Fix some typos and trailing whitespace. #2875
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/job_control.txt | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/runtime/doc/job_control.txt b/runtime/doc/job_control.txt index dc746bbe99..587eba4162 100644 --- a/runtime/doc/job_control.txt +++ b/runtime/doc/job_control.txt @@ -32,7 +32,7 @@ available shells, instead relying on OS functionality for process management. Internally, Nvim job control is powered by libuv, which has a nice cross-platform API for managing processes. See https://github.com/libuv/libuv -for details +for details. ============================================================================== 2. Usage *job-control-usage* @@ -76,7 +76,7 @@ Here's what is happening: - The `JobHandler()` function is a callback passed to |jobstart()| to handle various job events. It takes care of displaying stdout/stderr received from the shells. -- The arguments passed to `JobHandler()` are: +- The arguments passed to `JobHandler()` are: 0: The job id 1: If the event is "stdout" or "stderr", a list with lines read from the @@ -88,23 +88,23 @@ The options dictionary is passed as the "self" variable to the callback function. Here's a more object-oriented version of the above: > let Shell = {} - + function Shell.on_stdout(job_id, data) call append(line('$'), self.get_name().' stdout: '.join(a:data)) endfunction - + function Shell.on_stderr(job_id, data) call append(line('$'), self.get_name().' stderr: '.join(a:data)) endfunction - + function Shell.on_exit(job_id, data) call append(line('$'), self.get_name().' exited') endfunction - + function Shell.get_name() return 'shell '.self.name endfunction - + function Shell.new(name, ...) let instance = extend(copy(g:Shell), {'name': a:name}) let argv = ['bash'] @@ -114,7 +114,7 @@ function. Here's a more object-oriented version of the above: let instance.id = jobstart(argv, instance) return instance endfunction - + let s1 = Shell.new('1') let s2 = Shell.new('2', 'for i in {1..10}; do echo hello $i!; sleep 1; done') |