mirror of
https://github.com/TECHNOFAB11/tmux-copyrat.git
synced 2025-12-14 00:43:51 +01:00
refactor: remove process.rs
This commit is contained in:
parent
d2d3e812fc
commit
ec03a71bfd
4 changed files with 7 additions and 34 deletions
|
|
@ -8,7 +8,7 @@ use sequence_trie::SequenceTrie;
|
|||
use termion::{self, color, cursor, event, style};
|
||||
|
||||
use crate::error::ParseError;
|
||||
use crate::{colors, model, output_destination::OutputDestination, process, selection::Selection};
|
||||
use crate::{colors, model, output_destination::OutputDestination, selection::Selection};
|
||||
|
||||
pub struct Ui<'a> {
|
||||
model: &'a mut model::Model<'a>,
|
||||
|
|
@ -493,8 +493,8 @@ impl<'a> Ui<'a> {
|
|||
event::Key::Char(_ch @ ' ') => {
|
||||
output_destination.toggle();
|
||||
let message = format!("output destination: `{}`", output_destination);
|
||||
let args = vec!["display-message", &message];
|
||||
process::execute("tmux", &args)
|
||||
duct::cmd!("tmux", "display-message", &message)
|
||||
.run()
|
||||
.expect("could not make tmux display the message.");
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue