core: fix uninitialized variable when saving layout for windows in upgrade
core: use layout saved when option weechat.look.save_layout_on_exit is enabled (so it is automatically restored when WeeChat restarts)
Merge branch 'master' of git://git.sv.gnu.org/weechat
doc: fix C example of function weechat_nicklist_get_next_item (plugin API reference)
Merge branch 'master' of git://git.sv.gnu.org/weechat