From 7268b0d27369439f276d4907465cf2d83856fa32 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Sat, 14 May 2022 02:43:37 +0800 Subject: [PATCH] Use Debian alternatives for external tools instead of hardcoded programs Forwarded: No, Debian specific Gbp-Pq: Name 54-debian-alternatives-for-external-tools.patch --- src/bin/psql/settings.h | 4 ++-- src/include/fe_utils/print.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/psql/settings.h b/src/bin/psql/settings.h index 5be5091..e4e876a 100644 --- a/src/bin/psql/settings.h +++ b/src/bin/psql/settings.h @@ -20,8 +20,8 @@ #define DEFAULT_EDITOR "notepad.exe" /* no DEFAULT_EDITOR_LINENUMBER_ARG for Notepad */ #else -#define DEFAULT_EDITOR "vi" -#define DEFAULT_EDITOR_LINENUMBER_ARG "+" +#define DEFAULT_EDITOR "sensible-editor" +/*#define DEFAULT_EDITOR_LINENUMBER_ARG "+"*/ #endif #define DEFAULT_PROMPT1 "%/%R%# " diff --git a/src/include/fe_utils/print.h b/src/include/fe_utils/print.h index f138d96..2356a8e 100644 --- a/src/include/fe_utils/print.h +++ b/src/include/fe_utils/print.h @@ -18,7 +18,7 @@ /* This is not a particularly great place for this ... */ #ifndef __CYGWIN__ -#define DEFAULT_PAGER "more" +#define DEFAULT_PAGER "pager" #else #define DEFAULT_PAGER "less" #endif