# window.Window.split

- **Module:** window.Window
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/window.rs#L356
- **Page:** https://libtmux.org/reference/rs/window-window-split/

```
window.Window.split(self, options: impl Into<SplitOptions>) -> Result<Pane, Error>
```

Split this window and return the new pane.

# Errors

Returns an error when tmux refuses the split, which includes a target
pane that is too small to divide.
