mirror of
https://github.com/TECHNOFAB11/tmux-copyrat.git
synced 2025-12-15 17:33:51 +01:00
refactor: move line creation inside model
This commit is contained in:
parent
005fa7890f
commit
aeca7223a6
3 changed files with 51 additions and 62 deletions
|
|
@ -17,10 +17,8 @@ pub mod ui;
|
|||
///
|
||||
/// Maybe the decision to take ownership of the buffer is a bit bold.
|
||||
pub fn run(buffer: String, opt: &CliOpt) -> Option<(String, bool)> {
|
||||
let lines: Vec<&str> = buffer.split('\n').collect();
|
||||
|
||||
let mut model = model::Model::new(
|
||||
&lines,
|
||||
&buffer,
|
||||
&opt.alphabet,
|
||||
&opt.named_pattern,
|
||||
&opt.custom_regex,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue