summaryrefslogtreecommitdiff
path: root/data/readline/lendiff.diff
diff options
context:
space:
mode:
Diffstat (limited to 'data/readline/lendiff.diff')
-rw-r--r--data/readline/lendiff.diff16
1 files changed, 16 insertions, 0 deletions
diff --git a/data/readline/lendiff.diff b/data/readline/lendiff.diff
new file mode 100644
index 000000000..b0be57161
--- /dev/null
+++ b/data/readline/lendiff.diff
@@ -0,0 +1,16 @@
+diff --git a/display.c b/display.c
+index 4c6cc00..6471968 100644
+--- a/display.c
++++ b/display.c
+@@ -2206,7 +2206,11 @@ clear_rest_of_line:
+ space_to_eol will insert too many spaces. XXX - maybe we should
+ adjust col_lendiff based on the difference between _rl_last_c_pos
+ and _rl_screenwidth */
++#if 1
++ if (col_lendiff)
++#else
+ if (col_lendiff && ((mb_cur_max == 1 || rl_byte_oriented) || (_rl_last_c_pos < _rl_screenwidth)))
++#endif
+ {
+ if (_rl_term_autowrap && current_line < inv_botlin)
+ space_to_eol (col_lendiff);