diff options
author | Simmo Saan <simmo.saan@gmail.com> | 2015-12-03 11:57:09 +0200 |
---|---|---|
committer | Simmo Saan <simmo.saan@gmail.com> | 2015-12-03 11:57:09 +0200 |
commit | bcb7ac7777fde4015f5712ce2a82d7e31e3f9577 (patch) | |
tree | 3f939e3d86a52c9bce3b9604da78183bd617b313 /src/gui/curses/gui-curses-chat.c | |
parent | e1274010ff7725e2789b3755e9dc679cbab1f329 (diff) | |
download | weechat-bcb7ac7777fde4015f5712ce2a82d7e31e3f9577.zip |
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.
Diffstat (limited to 'src/gui/curses/gui-curses-chat.c')
-rw-r--r-- | src/gui/curses/gui-curses-chat.c | 1 |
1 files changed, 0 insertions, 1 deletions
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 */ |