diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-07-06 10:52:58 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-07-06 10:52:58 +0200 |
commit | 28088484df5c0cebeb0b4c8887e12bb9c619bf33 (patch) | |
tree | 3f4bb1d2534145af0b565e9632b42b09a800877d /src/gui/curses | |
parent | c32f244ffff26f405d76960b656c44ec493e5d4b (diff) | |
download | weechat-28088484df5c0cebeb0b4c8887e12bb9c619bf33.zip |
Fix other bugs with prefix alignment
Diffstat (limited to 'src/gui/curses')
-rw-r--r-- | src/gui/curses/gui-curses-chat.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/curses/gui-curses-chat.c b/src/gui/curses/gui-curses-chat.c index f2453b5f6..ca46d08fc 100644 --- a/src/gui/curses/gui-curses-chat.c +++ b/src/gui/curses/gui-curses-chat.c @@ -500,8 +500,8 @@ gui_chat_display_word (struct t_gui_window *window, if (end_offset && end_offset[0]) { - saved_char_end = end_offset[1]; - end_offset[1] = '\0'; + saved_char_end = end_offset[0]; + end_offset[0] = '\0'; } else { @@ -597,7 +597,7 @@ gui_chat_display_word (struct t_gui_window *window, } if (end_offset) - end_offset[1] = saved_char_end; + end_offset[0] = saved_char_end; } /* @@ -676,7 +676,7 @@ gui_chat_display_time_and_prefix (struct t_gui_window *window, (prefix_highlighted) ? prefix_highlighted : line->prefix, line->prefix + gui_chat_string_real_pos (line->prefix, - length_allowed - 1), + length_allowed), 1, num_lines, count, lines_displayed, simulate); } @@ -863,7 +863,7 @@ gui_chat_display_line (struct t_gui_window *window, struct t_gui_line *line, /* display word */ gui_chat_display_word (window, line, ptr_data, - ptr_end_offset, + ptr_end_offset + 1, 0, num_lines, count, &lines_displayed, simulate); |