Actually I found the way to do that. Suppose the two windows are number 1 and 2. Use
join-pane -s 2 -t 1
This will move the 2nd window as a pane to the 1st window. The opposite command is break-pane
Actually I found the way to do that. Suppose the two windows are number 1 and 2. Use
join-pane -s 2 -t 1
This will move the 2nd window as a pane to the 1st window. The opposite command is break-pane