mirror of
https://github.com/tmux/tmux.git
synced 2026-05-30 14:16:18 +00:00
More (currently disabled) bits for creating floating panes, from Michael
Grant and Dane Jensen.
This commit is contained in:
9
spawn.c
9
spawn.c
@@ -282,6 +282,13 @@ spawn_pane(struct spawn_context *sc, char **cause)
|
||||
layout_assign_pane(sc->lc, new_wp, 0);
|
||||
}
|
||||
|
||||
/*
|
||||
* If window currently zoomed, window_set_active_pane calls
|
||||
* window_unzoom which it copies back the saved_layout_cell.
|
||||
*/
|
||||
if (w->flags & WINDOW_ZOOMED)
|
||||
new_wp->saved_layout_cell = new_wp->layout_cell;
|
||||
|
||||
/*
|
||||
* Now we have a pane with nothing running in it ready for the new
|
||||
* process. Work out the command and arguments and store the working
|
||||
@@ -374,7 +381,7 @@ spawn_pane(struct spawn_context *sc, char **cause)
|
||||
goto complete;
|
||||
}
|
||||
|
||||
/* Store current working directory and change to new one. */
|
||||
/* Store current working directory and change to new one. */
|
||||
if (getcwd(path, sizeof path) != NULL) {
|
||||
if (chdir(new_wp->cwd) == 0)
|
||||
actual_cwd = new_wp->cwd;
|
||||
|
||||
Reference in New Issue
Block a user