Only do less hist file tricks if the pager appears to be less

This commit is contained in:
Dan Davison 2021-03-08 20:38:29 -05:00
parent 1b90b4e1ba
commit e72b0ea1da

View File

@ -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)
{