Check for empty $TMUX variable
In some situations, like when running vim with sudo, $TMUX exists() for some reason but is empty.
This commit is contained in:
parent
6a84dd326d
commit
1c08bafec6
@ -9,7 +9,7 @@
|
||||
" Docs on mapping fast escape codes in vim
|
||||
" http://vim.wikia.com/wiki/Mapping_fast_keycodes_in_terminal_Vim
|
||||
function! WrapForTmux(s)
|
||||
if !exists('$TMUX')
|
||||
if empty('$TMUX')
|
||||
return a:s
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user