summaryrefslogtreecommitdiffstats
path: root/src/utils/bat
diff options
context:
space:
mode:
authorWayne Davison <wayne@opencoder.net>2021-11-22 17:19:23 -0800
committerGitHub <noreply@github.com>2021-11-22 20:19:23 -0500
commit0c0043b428834e9323eaaaf5795d55209fb3dd5a (patch)
treef18e1ab1e99b513e1b722534767b98f6227e2226 /src/utils/bat
parentc2743f513176cf75c0733e4752a3c90000dded1b (diff)
Navigate regexp (#782)
* Allow navigate-regexp value to be overridden. * Don't add an empty label to the navigate_regexp. * Make --hunk-label=str not require --navigate. * Change navigate regexp to navigate regex. * Turn navigate-regex into an Option<String>.
Diffstat (limited to 'src/utils/bat')
-rw-r--r--src/utils/bat/output.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/utils/bat/output.rs b/src/utils/bat/output.rs
index a231168b..62761c25 100644
--- a/src/utils/bat/output.rs
+++ b/src/utils/bat/output.rs
@@ -162,8 +162,7 @@ fn _make_process_from_less_path(
p.env("LESSCHARSET", "UTF-8");
p.env("LESSANSIENDCHARS", "mK");
if config.navigate {
- if let Ok(hist_file) = navigate::copy_less_hist_file_and_append_navigate_regexp(config)
- {
+ if let Ok(hist_file) = navigate::copy_less_hist_file_and_append_navigate_regex(config) {
p.env("LESSHISTFILE", hist_file);
if config.show_themes {
p.arg("+n");