mirror of
https://github.com/dandavison/delta.git
synced 2024-10-06 04:47:17 +03:00
Only do less hist file tricks if the pager appears to be less
This commit is contained in:
parent
1b90b4e1ba
commit
e72b0ea1da
@ -132,7 +132,7 @@ delta is not an appropriate value for $PAGER \
|
||||
p.args(args);
|
||||
p
|
||||
};
|
||||
if config.navigate {
|
||||
if is_less && config.navigate {
|
||||
if let Ok(hist_file) =
|
||||
navigate::copy_less_hist_file_and_append_navigate_regexp(config)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user