diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-11-22 17:47:25 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-11-22 17:47:25 +0100 |
commit | 09bed16dbd39791b43f86a1c00279c7fdb5cbb58 (patch) | |
tree | 1c156c3ae7188cdb77efe456c5810c9e64037137 /src/core/wee-upgrade.c | |
parent | 828e9a835fe52c904cb4533c777b72da156f6aeb (diff) | |
download | weechat-09bed16dbd39791b43f86a1c00279c7fdb5cbb58.zip |
Save last read line (for marker) within /upgrade
Diffstat (limited to 'src/core/wee-upgrade.c')
-rw-r--r-- | src/core/wee-upgrade.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/wee-upgrade.c b/src/core/wee-upgrade.c index b8912525d..cb8eb9d12 100644 --- a/src/core/wee-upgrade.c +++ b/src/core/wee-upgrade.c @@ -151,7 +151,8 @@ upgrade_weechat_save_buffers (struct t_upgrade_file *upgrade_file) ptr_infolist = infolist_new (); if (!ptr_infolist) return 0; - if (!gui_buffer_line_add_to_infolist (ptr_infolist, ptr_line)) + if (!gui_buffer_line_add_to_infolist (ptr_infolist, + ptr_buffer, ptr_line)) { infolist_free (ptr_infolist); return 0; @@ -442,6 +443,8 @@ upgrade_weechat_read_cb (int object_id, { new_line->highlight = infolist_integer (infolist, "highlight"); } + if (infolist_integer (infolist, "last_read_line")) + upgrade_current_buffer->last_read_line = new_line; } break; case UPGRADE_WEECHAT_TYPE_NICKLIST: |