# Server.selectLastPane(in:)

- **Module:** Server
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/Sources/LibTmux/Navigation.swift#L53
- **Page:** https://libtmux.org/en/swift/latest/reference/server-selectlastpane(in-)/

```
Server.selectLastPane(in:)(in: Window) -> ()
```

Returns to the pane that was active before the current one.

tmux remembers one previous pane per window, so this is the pane
``select(_:)-(Pane)`` moved away from, not a history to walk back
through.

## Raises

- `TmuxError`
