aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-06-10 03:05:28 -0400
committerJustin M. Keyes <justinkz@gmail.com>2016-06-10 03:05:28 -0400
commita160590e40342f013b7da45d2ab0e1c6ed636d35 (patch)
treeacb505c22c42bf35612715c6aa9777feb7ec4ea2 /runtime
parent5832809344e54b7d0253457b63173b8ac7dbb4db (diff)
parent96546fb69636bd53d8f72d193af709f13af75b68 (diff)
downloadrneovim-a160590e40342f013b7da45d2ab0e1c6ed636d35.tar.gz
rneovim-a160590e40342f013b7da45d2ab0e1c6ed636d35.tar.bz2
rneovim-a160590e40342f013b7da45d2ab0e1c6ed636d35.zip
Merge #4813 'runtime: clipboard: start daemons in /'.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/autoload/provider/clipboard.vim1
-rw-r--r--runtime/doc/eval.txt33
2 files changed, 19 insertions, 15 deletions
diff --git a/runtime/autoload/provider/clipboard.vim b/runtime/autoload/provider/clipboard.vim
index c7cb14ded7..2272519dfd 100644
--- a/runtime/autoload/provider/clipboard.vim
+++ b/runtime/autoload/provider/clipboard.vim
@@ -94,6 +94,7 @@ function! s:clipboard.set(lines, regtype, reg)
let selection.data = [a:lines, a:regtype]
let argv = split(s:copy[a:reg], " ")
let selection.detach = s:cache_enabled
+ let selection.cwd = "/"
let jobid = jobstart(argv, selection)
if jobid <= 0
echohl WarningMsg
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 219327fd77..869fcf0078 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -4309,21 +4309,24 @@ jobstart({cmd}[, {opts}]) {Nvim} *jobstart()*
with 'shell' or 'shellcmdflag' options. The above call is
only written to show the idea, one needs to perform unquoting
and do split taking quotes into account.
- If passed, {opts} must be a dictionary with any of the
- following keys:
- - on_stdout: stdout event handler
- - on_stderr: stderr event handler
- - on_exit: exit event handler
- - pty: If set, the job will be connected to a new pseudo
- terminal, and the job streams are connected to the master
- file descriptor.
- - width: Width of the terminal screen(only if pty is set)
- - height: Height of the terminal screen(only if pty is set)
- - TERM: $TERM environment variable(only if pty is set)
- - detach: Detach the job process from the nvim process. The
- process won't get killed when nvim exists. If the process
- dies before nvim exits, on_exit will still be invoked.
- This option is only allowed for non-pty jobs.
+
+ {opts} is a dictionary with these keys:
+ on_stdout: stdout event handler
+ on_stderr: stderr event handler
+ on_exit : exit event handler
+ cwd : Working directory of the job; defaults to
+ |current-directory|.
+ pty : If set, the job will be connected to a new pseudo
+ terminal, and the job streams are connected to
+ the master file descriptor.
+ width : (pty only) Width of the terminal screen
+ height : (pty only) Height of the terminal screen
+ TERM : (pty only) $TERM environment variable
+ detach : (non-pty only) Detach the job process from the
+ nvim process. The process will not get killed
+ when nvim exits. If the process dies before
+ nvim exits, on_exit will still be invoked.
+
Either funcrefs or function names can be passed as event
handlers. The {opts} object is also used as the "self"
argument for the callback, so the caller may pass arbitrary