{"action":"created","issue":{"url":"https://api.github.com/repos/tmux/tmux/issues/570","repository_url":"https://api.github.com/repos/tmux/tmux","labels_url":"https://api.github.com/repos/tmux/tmux/issues/570/labels{/name}","comments_url":"https://api.github.com/repos/tmux/tmux/issues/570/comments","events_url":"https://api.github.com/repos/tmux/tmux/issues/570/events","html_url":"https://github.com/tmux/tmux/issues/570","id":181849477,"number":570,"title":"pane-border-status not updating from status-interval timer","user":{"login":"orebokech","id":49197,"avatar_url":"https://avatars.githubusercontent.com/u/49197?v=3","gravatar_id":"","url":"https://api.github.com/users/orebokech","html_url":"https://github.com/orebokech","followers_url":"https://api.github.com/users/orebokech/followers","following_url":"https://api.github.com/users/orebokech/following{/other_user}","gists_url":"https://api.github.com/users/orebokech/gists{/gist_id}","starred_url":"https://api.github.com/users/orebokech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orebokech/subscriptions","organizations_url":"https://api.github.com/users/orebokech/orgs","repos_url":"https://api.github.com/users/orebokech/repos","events_url":"https://api.github.com/users/orebokech/events{/privacy}","received_events_url":"https://api.github.com/users/orebokech/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-08T21:21:42Z","updated_at":"2016-10-09T08:12:29Z","closed_at":null,"body":"It seems that in the default configuration, if you enable pane-border-status the text in pane borders gets refreshed by a side effect; if you set status-right to the empty string then they don't get updated when they change, not even from the status-interval timer.\r\n\r\nTo reproduce, use the following minimal config file:\r\n\r\n    set -g pane-border-status top\r\n    set -g status-right \"\"\r\n    set -g status-interval 1\r\n\r\nIf you change the window title from inside the pane, the title displayed in the pane border doesn't change after 1 second, it only changes if the windows gets redrawn for some other reason.\r\n\r\nI suggest the attached patch, which sets the CLIENT_BORDERS flag when processing CLIENT_STATUS and pane-border-status is enabled to ensure that borders get redrawn along with the status line: [xx.txt](https://github.com/tmux/tmux/files/517944/xx.txt)"},"comment":{"url":"https://api.github.com/repos/tmux/tmux/issues/comments/252472038","html_url":"https://github.com/tmux/tmux/issues/570#issuecomment-252472038","issue_url":"https://api.github.com/repos/tmux/tmux/issues/570","id":252472038,"user":{"login":"nicm","id":304243,"avatar_url":"https://avatars.githubusercontent.com/u/304243?v=3","gravatar_id":"","url":"https://api.github.com/users/nicm","html_url":"https://github.com/nicm","followers_url":"https://api.github.com/users/nicm/followers","following_url":"https://api.github.com/users/nicm/following{/other_user}","gists_url":"https://api.github.com/users/nicm/gists{/gist_id}","starred_url":"https://api.github.com/users/nicm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicm/subscriptions","organizations_url":"https://api.github.com/users/nicm/orgs","repos_url":"https://api.github.com/users/nicm/repos","events_url":"https://api.github.com/users/nicm/events{/privacy}","received_events_url":"https://api.github.com/users/nicm/received_events","type":"User","site_admin":false},"created_at":"2016-10-09T08:12:29Z","updated_at":"2016-10-09T08:12:29Z","body":"How about this instead?\n\nIndex: status.c\n===================================================================\nRCS file: /cvs/src/usr.bin/tmux/status.c,v\nretrieving revision 1.150\ndiff -u -p -r1.150 status.c\n--- status.c\t12 Sep 2016 15:40:58 -0000\t1.150\n+++ status.c\t9 Oct 2016 08:11:48 -0000\n@@ -158,6 +158,8 @@ status_timer_callback(__unused int fd, _\n \n \tif (c->message_string == NULL && c->prompt_string == NULL)\n \t\tc->flags |= CLIENT_STATUS;\n+\tif (options_get_number(s->curw->window->options, \"pane-border-status\"))\n+\t\tc->flags |= CLIENT_BORDERS;\n \n \ttimerclear(&tv);\n \ttv.tv_sec = options_get_number(s->options, \"status-interval\");\n\n\n\n\nOn Sat, Oct 08, 2016 at 02:21:42PM -0700, Romain Francoise wrote:\n>    It seems that in the default configuration, if you enable\n>    pane-border-status the text in pane borders gets refreshed by a side\n>    effect; if you set status-right to the empty string then they don't get\n>    updated when they change, not even from the status-interval timer.\n> \n>    To reproduce, use the following minimal config file:\n> \n>  set -g pane-border-status top\n>  set -g status-right \"\"\n>  set -g status-interval 1\n> \n>    If you change the window title from inside the pane, the title displayed\n>    in the pane border doesn't change after 1 second, it only changes if the\n>    windows gets redrawn for some other reason.\n> \n>    I suggest the attached patch, which sets the CLIENT_BORDERS flag when\n>    processing CLIENT_STATUS and pane-border-status is enabled to ensure that\n>    borders get redrawn along with the status line: [1]xx.txt\n> \n>    --\n>    You are receiving this because you are subscribed to this thread.\n>    Reply to this email directly, [2]view it on GitHub, or [3]mute the thread.\n> \n>    Reverse link: [4]unknown\n> \n> References\n> \n>    Visible links\n>    1. https://github.com/tmux/tmux/files/517944/xx.txt\n>    2. https://github.com/tmux/tmux/issues/570\n>    3. https://github.com/notifications/unsubscribe-auth/AASkc7jFQTzWCPaJzcGAoYQ4GOnfnn7Oks5qyAlmgaJpZM4KR1Jk\n>    4. https://github.com/tmux/tmux/issues/570\n"}}
{"actor":{"display_login":"nicm"}}