Skip to content

Commit

Permalink
chore(typo): fix typos forcus -> focus (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyu08 committed Jun 25, 2024
1 parent 68e5774 commit 2879ed4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/usecase/fzf_make/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ impl SelectTargetState<'_> {
Ok(f) => f,
};

let current_pane = if config.get_forcus_history() {
let current_pane = if config.get_focus_history() {
CurrentPane::History
} else {
CurrentPane::Main
Expand Down
12 changes: 6 additions & 6 deletions src/usecase/fzf_make/config.rs
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
pub struct Config {
forcus_history: bool,
focus_history: bool,
}

impl Config {
pub fn new(forcus_history: bool) -> Self {
Self { forcus_history }
pub fn new(focus_history: bool) -> Self {
Self { focus_history }
}

pub fn default() -> Self {
Self {
forcus_history: false,
focus_history: false,
}
}

pub fn get_forcus_history(&self) -> bool {
self.forcus_history
pub fn get_focus_history(&self) -> bool {
self.focus_history
}
}

0 comments on commit 2879ed4

Please sign in to comment.