chiark / gitweb /
tree-wide: merge pager_open_if_enabled() to the pager_open()
authorAlexander Kuleshov <kuleshovmail@gmail.com>
Fri, 19 Feb 2016 18:25:13 +0000 (00:25 +0600)
committerSven Eden <yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:12:57 +0000 (10:12 +0200)
commite0685d07cfad6cb53a3b961f0b32bfbced107792
treebcf5b69b12a8297c12a1dd54ba835893dcae1c9d
parent27ae1f4f5136b21c2228530c2f3ea989079e0f0a
tree-wide: merge pager_open_if_enabled() to the pager_open()

Many subsystems define own pager_open_if_enabled() function which
checks '--no-pager' command line argument and open pager depends
on its value. All implementations of pager_open_if_enabled() are
the same. Let's merger this function with pager_open() from the
shared/pager.c and remove pager_open_if_enabled() from all subsytems
to prevent code duplication.
src/shared/pager.c
src/shared/pager.h