diff --git a/scripts/save.sh b/scripts/save.sh index 63fece9..d861ba5 100755 --- a/scripts/save.sh +++ b/scripts/save.sh @@ -224,6 +224,8 @@ dump_windows() { toggle_window_zoom "${session_name}:${window_index}" # get correct window layout window_layout="$(tmux display-message -p -t "${session_name}:${window_index}" -F "#{window_layout}")" + # sleep required otherwise vim does not redraw correctly, issue #112 + sleep 0.1 || sleep 1 # portability hack # maximize window again toggle_window_zoom "${session_name}:${window_index}" fi