Fix bug in #tmux#isOption()
Actually use `a:option` instead of `'set-clipboard'` string when comparing the tmux option value. This hasn't been an issue because the only use of the function happens to be checking the value of `'set-clipboard'`.
This commit is contained in:
parent
775d07414c
commit
d7c1bdd27c
@ -16,6 +16,6 @@ function! tmux#isOption(option, value) abort
|
|||||||
if !tmux#inSession()
|
if !tmux#inSession()
|
||||||
return 0
|
return 0
|
||||||
endif
|
endif
|
||||||
let l:set_clipboard = trim(system('tmux show-options -g '.a:option))
|
let l:option = trim(system('tmux show-options -g '.a:option))
|
||||||
return l:set_clipboard ==# 'set-clipboard '.a:value
|
return l:option ==# a:option.' '.a:value
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
x
Reference in New Issue
Block a user