Skip to content

Commit

Permalink
Include "local" in the list of all timezones for completion
Browse files Browse the repository at this point in the history
  • Loading branch information
eminence committed Jan 28, 2024
1 parent c7cc999 commit dc4a962
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion numbat-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,11 @@ impl Cli {
completer: NumbatCompleter {
context: self.context.clone(),
modules: self.context.lock().unwrap().list_modules().collect(),
all_timezones: chrono_tz::TZ_VARIANTS.map(|v| v.name()).into(),
all_timezones: {
let mut all_tz: Vec<_> = chrono_tz::TZ_VARIANTS.map(|v| v.name()).into();
all_tz.push("local");
all_tz
},
},
highlighter: NumbatHighlighter {
context: self.context.clone(),
Expand Down

0 comments on commit dc4a962

Please sign in to comment.