From a3abe8b9aeb7ac54159bc780d7d0f26c17aa51d9 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Fri, 23 Nov 2018 03:31:38 +0530 Subject: [PATCH] gst-inspect: Use less -F -X everywhere as the pager This emulates the default behaviour of git help pages, and also fixes a bug on macOS where `less -F` doesn't display anything at all when the output is shorter than one terminal screen. Also moved the DEFAULT_PAGER define to after the includes, because it's an unprefixed define. Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/issues/330 --- tools/gst-inspect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c index c9f407a..372f91a 100644 --- a/tools/gst-inspect.c +++ b/tools/gst-inspect.c @@ -29,8 +29,6 @@ * with newer GLib versions (>= 2.31.0) */ #define GLIB_DISABLE_DEPRECATION_WARNINGS -#define DEFAULT_PAGER "less -F" - #include "tools.h" #include /* for internal Factories */ @@ -42,6 +40,8 @@ # include #endif +#define DEFAULT_PAGER "less -F -X" + static char *_name = NULL; static int indent = 0; -- 2.7.4