Skip to content

Commit

Permalink
Make session and directory options only consider same machine.
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-turbofish committed Apr 26, 2024
1 parent efe9b60 commit f0ce267
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ fn read_entries(history_collection: Arc<Mutex<HistoryCollection>>) {

fn filter_entry(location: &Location, app_state: &AppState, entry: &History) -> bool {
match location {
Location::Session => entry.session == app_state.session,
Location::Directory => entry.dir == app_state.dir,
Location::Session => entry.session == app_state.session && entry.host == app_state.machine,
Location::Directory => entry.dir == app_state.dir && entry.host == app_state.machine,
Location::Machine => entry.host == app_state.machine,
Location::Everywhere => true,
}
Expand Down

0 comments on commit f0ce267

Please sign in to comment.