mirror of
https://github.com/FliegendeWurst/tmux-thumbs.git
synced 2024-11-24 05:45:00 +00:00
Fix issue with really long lines
This commit is contained in:
parent
3aa1770b7a
commit
b719e1fb46
2
samples/test7
Normal file
2
samples/test7
Normal file
@ -0,0 +1,2 @@
|
||||
This is a really long path: /var/log/nginx/log/nginx/log/nginx/log/nginx/log/nginx/log/nginx/log/nginx/log/nginx/log/nginx/log/nginx/log/nginx/log/nginx.log
|
||||
This is a another really long path: /var/log/apache/log/apache/log/apache/log/apache/log/apache/log/apache/log/apache/log/apache/log/apache/log/apache/log/apache/log/apache.log
|
@ -215,7 +215,7 @@ impl<'a> Swapper<'a> {
|
||||
};
|
||||
|
||||
let pane_command = format!(
|
||||
"tmux capture-pane -t {active_pane_id} -p{scroll_params} | tail -n {height} | {dir}/target/release/thumbs -f '%U:%H' -t {tmp} {args}; tmux swap-pane -t {active_pane_id}; {zoom_command} tmux wait-for -S {signal}",
|
||||
"tmux capture-pane -J -t {active_pane_id} -p{scroll_params} | tail -n {height} | {dir}/target/release/thumbs -f '%U:%H' -t {tmp} {args}; tmux swap-pane -t {active_pane_id}; {zoom_command} tmux wait-for -S {signal}",
|
||||
active_pane_id = active_pane_id,
|
||||
scroll_params = scroll_params,
|
||||
height = self.active_pane_height.unwrap_or(i32::MAX),
|
||||
|
Loading…
Reference in New Issue
Block a user