]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/pager: Apply pager-specific fixes only when needed
authorDragan Simic <dsimic@manjaro.org>
Tue, 4 Jul 2023 09:14:30 +0000 (11:14 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 11 Jul 2023 09:29:05 +0000 (11:29 +0200)
commitc10ad975895372122f72c8d9da089b6ea69f778b
tree62027b5e39b96c673d38968ad2a02d80a39c8d9d
parent082b1f713e306208ec0d410eab3e7f906ec3d0e6
lib/pager: Apply pager-specific fixes only when needed

Currently defined output filter quirk fixes and environment variable
tweaks apply to less(1) only, so let's don't apply them when the pager
is actually configured to something else.

While there, rename the less(1)-specific callback function to make
clear what it applies to, and to make adding any posible additional
pager-specific callback functions a bit easier.

Signed-off-by: Dragan Simic <dsimic@manjaro.org>
lib/pager.c