{"action":"created","issue":{"url":"https://api.github.com/repos/weechat/weechat/issues/846","repository_url":"https://api.github.com/repos/weechat/weechat","labels_url":"https://api.github.com/repos/weechat/weechat/issues/846/labels{/name}","comments_url":"https://api.github.com/repos/weechat/weechat/issues/846/comments","events_url":"https://api.github.com/repos/weechat/weechat/issues/846/events","html_url":"https://github.com/weechat/weechat/issues/846","id":190081956,"number":846,"title":"weechat.bar.* options seem to forget default value","user":{"login":"01100001","id":16049961,"avatar_url":"https://avatars.githubusercontent.com/u/16049961?v=3","gravatar_id":"","url":"https://api.github.com/users/01100001","html_url":"https://github.com/01100001","followers_url":"https://api.github.com/users/01100001/followers","following_url":"https://api.github.com/users/01100001/following{/other_user}","gists_url":"https://api.github.com/users/01100001/gists{/gist_id}","starred_url":"https://api.github.com/users/01100001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/01100001/subscriptions","organizations_url":"https://api.github.com/users/01100001/orgs","repos_url":"https://api.github.com/users/01100001/repos","events_url":"https://api.github.com/users/01100001/events{/privacy}","received_events_url":"https://api.github.com/users/01100001/received_events","type":"User","site_admin":false},"labels":[{"id":83724885,"url":"https://api.github.com/repos/weechat/weechat/labels/enhancement","name":"enhancement","color":"409de5","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-17T15:41:43Z","updated_at":"2016-11-18T03:31:15Z","closed_at":null,"body":"In WeeChat, I ran:\r\n\r\n```\r\n/iset color =default\r\n```\r\n\r\nAnd then, for all these options, I carefully set the color of the text (i.e. foreground-related options) to `223` and background of the text (i.e. background-related options) to `235`.\r\n\r\nNow, after that, (I don't know if it matters or not) I `/quit` WeeChat, then started it again. I did this a couple of times for various reasons.\r\n\r\nI didn't like the look of the custom theme that I was creating, so I issued `/iset color =default` and started resetting the values of all those options back to defaults by pressing <kbd>Alt</kbd> + <kbd>i</kbd>, <kbd>Alt</kbd> + <kbd>r</kbd>.\r\n\r\nBut then I noticed some of the options didn't change. They remained 223 or 235 depending on what I set them to earlier. They forgot their default value. Even the description for the options reflected the same, for e.g. `... [default: \"235\"]`.\r\n\r\nThe options that seem to have this problem are:\r\n\r\n```\r\n/iset weechat.bar*color\r\n```\r\n\r\n**Screenshot:**\r\n\r\n![image](https://cloud.githubusercontent.com/assets/16049961/20395808/21d36966-ad0a-11e6-96a5-7e8fe1bc01a8.png)\r\n\r\nNotice the options with 235 or 223 as values. But I think the same will happen to the other options shown in the screenshot (I haven't tested them). Also notice how the default value has changed in the description, e.g. `... [default: \"235\"]`.\r\n\r\nNOTE: I have the scripts buffers.pl and iset.pl installed. I am **`fr3ya`** on freenode."},"comment":{"url":"https://api.github.com/repos/weechat/weechat/issues/comments/261440381","html_url":"https://github.com/weechat/weechat/issues/846#issuecomment-261440381","issue_url":"https://api.github.com/repos/weechat/weechat/issues/846","id":261440381,"user":{"login":"01100001","id":16049961,"avatar_url":"https://avatars.githubusercontent.com/u/16049961?v=3","gravatar_id":"","url":"https://api.github.com/users/01100001","html_url":"https://github.com/01100001","followers_url":"https://api.github.com/users/01100001/followers","following_url":"https://api.github.com/users/01100001/following{/other_user}","gists_url":"https://api.github.com/users/01100001/gists{/gist_id}","starred_url":"https://api.github.com/users/01100001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/01100001/subscriptions","organizations_url":"https://api.github.com/users/01100001/orgs","repos_url":"https://api.github.com/users/01100001/repos","events_url":"https://api.github.com/users/01100001/events{/privacy}","received_events_url":"https://api.github.com/users/01100001/received_events","type":"User","site_admin":false},"created_at":"2016-11-18T03:31:15Z","updated_at":"2016-11-18T03:31:15Z","body":"@flashcode okay, dynamic options aside, can something be done about the note `... [default: XXX]` in the description? Can that be filled from the script instead of the config.?\r\n\r\nI don't code (just getting started with a JS book), so I don't know if what I am asking above is feasible. :)"}}
{"actor":{"display_login":"01100001"}}