gentoo-ebuilds/sys-libs/readline/files/readline-8.3-iwd-crash.patch
Sam James ab8e49f524
sys-libs/readline: fix iwctl crash
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-08 22:20:13 +01:00

19 lines
932 B
Diff

https://lists.gnu.org/archive/html/bug-readline/2025-07/msg00007.html
https://gitlab.archlinux.org/archlinux/packaging/packages/readline/-/issues/1
*** a/display.c Fri May 2 09:20:32 2025
--- b/display.c Sun Jul 6 17:16:28 2025
***************
*** 784,788 ****
/* Useful shorthand used by rl_redisplay, update_line, rl_move_cursor_relative */
#define INVIS_FIRST() (local_prompt_invis_chars[0])
! #define WRAP_OFFSET(line, offset) ((line <= prompt_last_screen_line) ? local_prompt_invis_chars[line] : 0)
#define W_OFFSET(line, offset) ((line) == 0 ? offset : 0)
--- 784,788 ----
/* Useful shorthand used by rl_redisplay, update_line, rl_move_cursor_relative */
#define INVIS_FIRST() (local_prompt_invis_chars[0])
! #define WRAP_OFFSET(line, offset) ((line <= prompt_last_screen_line && local_prompt_invis_chars) ? local_prompt_invis_chars[line] : 0)
#define W_OFFSET(line, offset) ((line) == 0 ? offset : 0)