From de0e6fcde0f4fdd9a08255dac52629bec28a0ca3 Mon Sep 17 00:00:00 2001 From: lukeflo Date: Mon, 17 Feb 2025 21:43:18 +0100 Subject: Update README --- src/bibiman.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/bibiman.rs') diff --git a/src/bibiman.rs b/src/bibiman.rs index 6aa138d..20cdfc6 100644 --- a/src/bibiman.rs +++ b/src/bibiman.rs @@ -328,7 +328,7 @@ impl Bibiman { self.entry_table.entry_table_state.select(Some(idx_count)); } - pub fn run_editor(&mut self, args: &CLIArgs, tui: &mut Tui) -> Result<()> { + pub fn run_editor(&mut self, cfg: &BibiConfig, args: &CLIArgs, tui: &mut Tui) -> Result<()> { // get filecontent and citekey for calculating line number let citekey: &str = &self.entry_table.entry_table_items [self.entry_table.entry_table_state.selected().unwrap()] @@ -379,6 +379,7 @@ impl Bibiman { tui.exit()?; // Use VISUAL or EDITOR. Set "vi" as last fallback let mut cmd: Command = EditorBuilder::new() + .source(cfg.general.editor.clone()) .environment() .source(Some("vi")) .build() -- cgit v1.2.3