refactor: model.rs -> textbuf/model.rs

This commit is contained in:
graelo 2021-03-19 23:29:36 +01:00
parent a5e3ed263c
commit 9afdcf3db2
4 changed files with 14 additions and 11 deletions

View file

@ -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,