# libtmux::Window::select_last_pane

- **Module:** libtmux::Window
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/85e8bd603a322dc32bb8b9aeb1a72bcf36945f1d/include/libtmux/entities.hpp#L505
- **Page:** https://libtmux.org/reference/cxx/libtmux-window-select_last_pane/

```
libtmux::Window::select_last_pane() -> expected< Pane, CommandFailure >
```

Go back to the pane that was selected before the current one, and answer with it.

Server state, like the window equivalent: nothing in a listing says which pane that was. A window holding one pane is refused rather than reselecting it, which is what tmux does.
