We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents abf7001 + 5f4907c commit 523edb4Copy full SHA for 523edb4
1 file changed
autoload/nnn.vim
@@ -264,14 +264,18 @@ endfunction
264
265
function! s:create_term_buf(opts)
266
if has("nvim")
267
- call termopen([g:nnn#shell, &shellcmdflag, a:opts.cmd], {'on_exit': a:opts.on_exit })
+ call termopen([g:nnn#shell, &shellcmdflag, a:opts.cmd], {
268
+ \ 'env': { 'NNN_SEL': s:temp_file },
269
+ \ 'on_exit': a:opts.on_exit
270
+ \ })
271
startinsert
272
return bufnr('')
273
else
274
let l:curwin = get(a:opts, 'curwin', 1)
275
let l:hidden = get(a:opts, 'hidden', 0)
276
let l:Exit_cb = get(a:opts, 'on_exit')
277
let l:tbuf = term_start([g:nnn#shell, &shellcmdflag, a:opts.cmd], {
278
279
\ 'curwin': l:curwin,
280
\ 'hidden': l:hidden,
281
\ 'exit_cb': l:Exit_cb
0 commit comments