You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting this error on vim v8.1, tmux v2.8 after pulling in the change from #204
Error detected while processing function VimuxPromptCommand[10]..VimuxRunCommand[2]..VimuxOpenRunner[1]..<SNR>23_nearestIndex[3]..VimuxTmux:
line 5:
E117: Unknown function: environ
E116: Invalid arguments for function has_key(environ(), 'TMUX')
I did this to fix it. Not sure if this is something you want to look into or if it's just an issue with my environment that I don't care to take the time to fix.
index 0737d74..7e3d04d 100644
--- a/plugin/vimux.vim+++ b/plugin/vimux.vim@@ -189,7 +189,7 @@ function! VimuxTmux(arguments) abort
if VimuxOption('VimuxDebug')
echom VimuxOption('VimuxTmuxCommand').' '.a:arguments
endif
- if has_key(environ(), 'TMUX')+ if exists('$TMUX')
return system(VimuxOption('VimuxTmuxCommand').' '.a:arguments)
else
throw 'Aborting, because not inside tmux session.'
The text was updated successfully, but these errors were encountered:
endoped
changed the title
environ()
Unknown function: environ
Mar 2, 2022
The environ() function was added in VIM 8.1.1305 back in 2019. It also exists in NeoVIM. I'm not too keen on supporting old versions, but your alternative for this simple task probably wouldn't hurt in this case as long as current VIM & NeoVIM versions support it the same way. I'd be happy to review a PR if you submit this change.
Also note your tmux is obscenely outdated. I'm not 100% sure 2.x releases are even supported by this plugin. If you run into more trouble consider updating to something from the last few years.
I'm getting this error on vim v8.1, tmux v2.8 after pulling in the change from #204
I did this to fix it. Not sure if this is something you want to look into or if it's just an issue with my environment that I don't care to take the time to fix.
The text was updated successfully, but these errors were encountered: