Fix bug with split target
This commit is contained in:
parent
68d07cd897
commit
459b971a6a
@ -105,15 +105,17 @@ module Teamocil
|
|||||||
commands = []
|
commands = []
|
||||||
|
|
||||||
# Is it a vertical or horizontal split?
|
# Is it a vertical or horizontal split?
|
||||||
|
init_command = ""
|
||||||
unless @index == 0
|
unless @index == 0
|
||||||
if !@width.nil?
|
if !@width.nil?
|
||||||
commands << "tmux split-window -h -p #{@width}"
|
init_command = "tmux split-window -h -p #{@width}"
|
||||||
elsif !@height.nil?
|
elsif !@height.nil?
|
||||||
commands << "tmux split-window -p #{@height}"
|
init_command = "tmux split-window -p #{@height}"
|
||||||
else
|
else
|
||||||
commands << "tmux split-window"
|
init_command = "tmux split-window"
|
||||||
end
|
end
|
||||||
commands << " -t #{@target}" unless @target.nil?
|
init_command << " -t #{@target}" unless @target.nil?
|
||||||
|
commands << init_command
|
||||||
end
|
end
|
||||||
|
|
||||||
# Wrap all commands around filters
|
# Wrap all commands around filters
|
||||||
|
Loading…
Reference in New Issue
Block a user