refactor: refactor ui -> vc

This commit is contained in:
graelo 2021-03-19 09:00:42 +01:00
parent ec03a71bfd
commit de1aa3889c
3 changed files with 38 additions and 16 deletions

View file

@ -44,7 +44,7 @@ pub fn run(buffer: String, opt: &CliOpt) -> Option<selection::Selection> {
let default_output_destination = output_destination::OutputDestination::Tmux;
let selection: Option<selection::Selection> = {
let mut ui = ui::Ui::new(
let mut ui = ui::ViewController::new(
&mut model,
opt.unique_hint,
opt.focus_wrap_around,