summaryrefslogtreecommitdiff
path: root/src/gui/gui-line.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-08-14 11:30:08 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-08-14 11:30:08 +0200
commit1cb7c6a6c5ef1ffd647779f41806a4be7f557622 (patch)
tree246aed1c6bc394a63c0d70f38354601134b4cfbc /src/gui/gui-line.c
parentfb4c1ed1e9ece94ad1ed9a0a42b91e16a371566f (diff)
downloadweechat-1cb7c6a6c5ef1ffd647779f41806a4be7f557622.zip
core: return info about line/word for chat area in focus hashtable, add keys m/q/Q to quote line in cursor mode, sort mouse keys by priority
Diffstat (limited to 'src/gui/gui-line.c')
-rw-r--r--src/gui/gui-line.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/gui/gui-line.c b/src/gui/gui-line.c
index a23784906..f97b13486 100644
--- a/src/gui/gui-line.c
+++ b/src/gui/gui-line.c
@@ -574,11 +574,11 @@ gui_line_remove_from_list (struct t_gui_buffer *buffer,
{
struct t_gui_window *ptr_win;
struct t_gui_window_scroll *ptr_scroll;
- int update_prefix_max_length;
+ int i, update_prefix_max_length;
- /* reset scroll for any window scroll starting with this line */
for (ptr_win = gui_windows; ptr_win; ptr_win = ptr_win->next_window)
{
+ /* reset scroll for any window scroll starting with this line */
for (ptr_scroll = ptr_win->scroll; ptr_scroll;
ptr_scroll = ptr_scroll->next_scroll)
{
@@ -589,6 +589,15 @@ gui_line_remove_from_list (struct t_gui_buffer *buffer,
gui_buffer_ask_chat_refresh (buffer, 2);
}
}
+ /* remove line from coords */
+ if (ptr_win->coords)
+ {
+ for (i = 0; i < ptr_win->coords_size; i++)
+ {
+ if (ptr_win->coords[i].line == line)
+ gui_window_coords_init_line (ptr_win, i);
+ }
+ }
}
update_prefix_max_length =
@@ -803,7 +812,7 @@ gui_line_add (struct t_gui_buffer *buffer, time_t date,
/* fill data in new line */
new_line->data->buffer = buffer;
- new_line->data->y = 0;
+ new_line->data->y = -1;
new_line->data->date = date;
new_line->data->date_printed = date_printed;
new_line->data->str_time = (date == 0) ?