From 9a2d51c7f446a7d6ed1b057c7a7de7c53165617b Mon Sep 17 00:00:00 2001 From: shixuantong Date: Thu, 23 Jan 2025 17:28:45 +0800 Subject: [PATCH] Add shell command to switch bracketed-paste mode from on to off to keep consistent with realine-8.0 --- readline.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/readline.spec b/readline.spec index 9062cd4..37da9cc 100644 --- a/readline.spec +++ b/readline.spec @@ -1,6 +1,6 @@ Name: readline Version: 8.2.13 -Release: 1 +Release: 2 Summary: Readline library for editing typed command lines License: GPL-3.0-or-later @@ -71,7 +71,15 @@ rm -vf %{buildroot}%{_infodir}/dir* %{_infodir}/readline.info* %{_mandir}/man3/* +%posttrans +if ! grep -q "enable-bracketed-paste" /etc/inputrc; then + echo "set enable-bracketed-paste 0" >> /etc/inputrc +fi + %changelog +* Thu Jan 23 2025 shixuantong - 8.2.13-2 +- Add shell command to switch bracketed-paste mode from on to off to keep consistent with realine-8.0 + * Sun Aug 04 2024 Funda Wang - 8.2.13-1 - update to 8.2.13 -- Gitee