From c14b1b5fae241e19bfc505dcb427ca88b8d5554d Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Mon, 22 Jul 2013 18:25:35 +0200 Subject: [PATCH] core: remove gap after read marker line when there is no bar on the right (bug #39548) --- ChangeLog | 4 +++- src/gui/curses/gui-curses-chat.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d7c9610d8..00ce7b6ab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,7 @@ WeeChat ChangeLog ================= Sébastien Helleu -v0.4.2-dev, 2013-07-20 +v0.4.2-dev, 2013-07-22 This document lists all changes for each version. @@ -14,6 +14,8 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes] Version 0.4.2 (under dev!) -------------------------- +* core: remove gap after read marker line when there is no bar on the right + (bug #39548) * core: add CA_FILE option in cmake and configure to setup default value of option weechat.network.gnutls_ca_file (default is "/etc/ssl/certs/ca-certificates.crt") (task #12725) diff --git a/src/gui/curses/gui-curses-chat.c b/src/gui/curses/gui-curses-chat.c index aa75ac4c1..0d753719f 100644 --- a/src/gui/curses/gui-curses-chat.c +++ b/src/gui/curses/gui-curses-chat.c @@ -193,7 +193,7 @@ gui_chat_display_horizontal_line (struct t_gui_window *window, int simulate) window->win_chat_cursor_y, window->win_chat_cursor_x); wclrtoeol (GUI_WINDOW_OBJECTS(window)->win_chat); x = 0; - while (x < window->win_chat_width - 1) + while (x < gui_chat_get_real_width (window)) { mvwprintw (GUI_WINDOW_OBJECTS(window)->win_chat, window->win_chat_cursor_y, x,