feat: capture wrapped lines

This commit is contained in:
graelo 2020-06-02 13:10:48 +02:00
parent 45a4083547
commit 193dca67e3
3 changed files with 71 additions and 27 deletions

View file

@ -205,7 +205,7 @@ pub fn get_options(prefix: &str) -> Result<HashMap<String, String>, ParseError>
/// position. To support both cases, the implementation always provides those
/// parameters to tmux.
pub fn capture_pane(pane: &Pane, region: &CaptureRegion) -> Result<String, ParseError> {
let mut args = format!("capture-pane -t {pane_id} -p", pane_id = pane.id);
let mut args = format!("capture-pane -t {pane_id} -J -p", pane_id = pane.id);
let region_str = match region {
CaptureRegion::VisibleArea => {