From c3cc06ff276be43d2ba6424e771230c9633db781 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 28 Feb 2021 17:13:52 +0100 Subject: [PATCH] core: fix quoted line in cursor mode (closes #1602) Regression was introduced in version 2.7 by commit 93d2dbf3e1ef30e676a6edd56ab2b9bd2ddd70d9. --- ChangeLog.adoc | 1 + src/gui/curses/gui-curses-chat.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog.adoc b/ChangeLog.adoc index dc5d15c84..c5ff96122 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -35,6 +35,7 @@ New features:: Bug fixes:: + * core: fix quoted line in cursor mode (issue #1602) * core: fix wrong size of the new window after vertical split (issue #1612) * core: do not remove quotes in arguments of command /eval as they can be part of the evaluated expression/condition (issue #1601) * core: display an error when the buffer is not found with command /command -buffer diff --git a/src/gui/curses/gui-curses-chat.c b/src/gui/curses/gui-curses-chat.c index 0db5eec90..64144cc29 100644 --- a/src/gui/curses/gui-curses-chat.c +++ b/src/gui/curses/gui-curses-chat.c @@ -532,7 +532,7 @@ gui_chat_display_word (struct t_gui_window *window, gui_window_restore_style (GUI_WINDOW_OBJECTS(window)->win_chat); } } - if (window->win_chat_cursor_y < window->coords_size) + if (!simulate && (window->win_chat_cursor_y < window->coords_size)) { window->coords[window->win_chat_cursor_y].line = line; window->coords[window->win_chat_cursor_y].data = (char *)word + (ptr_data - data);