Fix: command prompt not ideal after a restore

Fixes #36
This commit is contained in:
Bruno Sutic 2014-09-02 22:34:00 +02:00
parent d5598d1c61
commit d606106f1c
No known key found for this signature in database
GPG Key ID: 66D96E4F2F7EF26C
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,7 @@
# Changelog # Changelog
### master ### master
- tweak 'new_pane' creation strategy to fix #36
### v1.2.0, 2014-09-01 ### v1.2.0, 2014-09-01
- new feature: inline strategies when restoring a program - new feature: inline strategies when restoring a program

View File

@ -99,8 +99,9 @@ new_pane() {
local window_number="$2" local window_number="$2"
local window_name="$3" local window_name="$3"
local dir="$4" local dir="$4"
tmux split-window -t "${session_name}:${window_number}" -c "$dir" -h tmux split-window -t "${session_name}:${window_number}" -c "$dir"
tmux resize-pane -t "${session_name}:${window_number}" -L "999" # minimize window so more panes can fit
tmux resize-pane -t "${session_name}:${window_number}" -U "999"
} }
restore_pane() { restore_pane() {