From bcb7ac7777fde4015f5712ce2a82d7e31e3f9577 Mon Sep 17 00:00:00 2001 From: Simmo Saan Date: Thu, 3 Dec 2015 11:57:09 +0200 Subject: gui: fix focus data being offset when prefix_align is none (closes #610) window->coords_x_message stored a single x coordinate for the entire window which was used for message position calculation. Such approach does not work when prefix_align is none, thus now the x coordinate in question is exactly calculated for a line individually. --- src/gui/curses/gui-curses-chat.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/gui/curses/gui-curses-chat.c') diff --git a/src/gui/curses/gui-curses-chat.c b/src/gui/curses/gui-curses-chat.c index 0bbd1810e..d9291c352 100644 --- a/src/gui/curses/gui-curses-chat.c +++ b/src/gui/curses/gui-curses-chat.c @@ -1312,7 +1312,6 @@ gui_chat_display_line (struct t_gui_window *window, struct t_gui_line *line, { if (window->win_chat_cursor_y < window->coords_size) window->coords[window->win_chat_cursor_y].data = line->data->message; - window->coords_x_message = window->win_chat_cursor_x; } /* reset color & style for a new line */ -- cgit v1.2.3