# tmux.Window.PreviousLayout

- **Module:** tmux.Window
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmux/window_layout.go#L316
- **Page:** https://libtmux.org/en/go/latest/reference/tmux-window-previouslayout/

```
tmux.Window.PreviousLayout(ctx: context.Context) -> error
```

PreviousLayout applies the previous preset layout to the receiver's exact winlink. It changes pane geometry without selecting or refreshing the window. A transport or context error can be delivery-ambiguous; the void result cannot carry partial state and no rollback is attempted.
