mirror of
https://github.com/termux/termux-packages.git
synced 2025-03-04 08:18:54 +00:00
18 lines
907 B
Diff
18 lines
907 B
Diff
https://github.com/termux/termux-packages/issues/12282
|
|
|
|
--- a/src/readline.c
|
|
+++ b/src/readline.c
|
|
@@ -96,10 +96,12 @@
|
|
in .inputrc */
|
|
|
|
/* put the next variable binding(s) *after* rl_initialize(), so they cannot be overridden */
|
|
+#if 0
|
|
if (rl_readline_version < 0x802) /* in bracketed_paste_mode rl_deprep_terminal() prints BRACK_PASTE_FINI ("\033[?2004l\r")
|
|
which moves the cursor to the beginning of the line. In pre-8.2 readline, this doesn't
|
|
set _rl_last_c_pos to 0, which makes rl_redisplay() think that it is already past the prompt,
|
|
making it overwrite the prompt that rlwrap has already printed. cf. https://github.com/hanslub42/rlwrap/issues/168 */
|
|
+#endif
|
|
rl_variable_bind("enable-bracketed-paste","off");
|
|
|
|
using_history();
|