mirror of
https://github.com/TECHNOFAB11/tmux-copyrat.git
synced 2025-12-17 02:13:51 +01:00
refactor: model.rs -> textbuf/model.rs
This commit is contained in:
parent
a5e3ed263c
commit
9afdcf3db2
4 changed files with 14 additions and 11 deletions
|
|
@ -5,9 +5,9 @@ use std::str::FromStr;
|
|||
|
||||
pub mod alphabets;
|
||||
pub mod error;
|
||||
pub mod model;
|
||||
pub mod output_destination;
|
||||
pub mod regexes;
|
||||
pub mod textbuf;
|
||||
pub mod tmux;
|
||||
pub mod ui;
|
||||
|
||||
|
|
@ -17,7 +17,7 @@ pub mod ui;
|
|||
///
|
||||
/// Maybe the decision to take ownership of the buffer is a bit bold.
|
||||
pub fn run(buffer: String, opt: &CliOpt) -> Option<ui::Selection> {
|
||||
let mut model = model::Model::new(
|
||||
let mut model = textbuf::Model::new(
|
||||
&buffer,
|
||||
&opt.alphabet,
|
||||
opt.use_all_patterns,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue