Skip to content

Commit

Permalink
Fix missing !exists
Browse files Browse the repository at this point in the history
The !exists variable check was missing when tmux was set as the default
slime option, so it was always set to tmux even if the user set it to
"screen" in his/her vimrc.
  • Loading branch information
KTamas committed Nov 24, 2011
1 parent c3d022a commit 5f27015
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugin/slime.vim
Expand Up @@ -53,7 +53,9 @@ endfunction
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Public interface
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let g:slime_option = "tmux"
if !exists("g:slime_option")
let g:slime_option = "tmux"
end

let s:slime_muxes = {
\ "tmux":{"fn_config":"TmuxConfig", "fn_send":"TmuxSend", "config_var":"slime_tmux"},
Expand Down

0 comments on commit 5f27015

Please sign in to comment.