1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-24 20:06:38 +02:00

gui: add missing line pointer to long words split across lines (closes #617)

Displaying a word which was forced to be split across lines added the new
coords without pointer to the original line. This made them unquotable in
cursor mode.
This commit is contained in:
Simmo Saan
2015-12-03 12:00:22 +02:00
parent bcb7ac7777
commit 93d2dbf3e1
+3
View File
@@ -525,7 +525,10 @@ 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)
{
window->coords[window->win_chat_cursor_y].line = line;
window->coords[window->win_chat_cursor_y].data = (char *)word + (ptr_data - data);
}
}
chars_to_display = gui_chat_strlen_screen (ptr_data);