Mercurial > vim
comparison src/channel.c @ 14303:f761a55a8aed v8.1.0167
patch 8.1.0167: lock flag in new dictitem is reset in many places
commit https://github.com/vim/vim/commit/c89d4b35300b98cf68b14c89c8e1add51bd857e3
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 8 17:19:02 2018 +0200
patch 8.1.0167: lock flag in new dictitem is reset in many places
Problem: Lock flag in new dictitem is reset in many places.
Solution: Always reset the lock flag.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 08 Jul 2018 17:30:06 +0200 |
parents | 3c80092eb211 |
children | 2661d77e440e |
comparison
equal
deleted
inserted
replaced
14302:35465f8b5195 | 14303:f761a55a8aed |
---|---|
5740 dict_add_string(dict, "status", (char_u *)job_status(job)); | 5740 dict_add_string(dict, "status", (char_u *)job_status(job)); |
5741 | 5741 |
5742 item = dictitem_alloc((char_u *)"channel"); | 5742 item = dictitem_alloc((char_u *)"channel"); |
5743 if (item == NULL) | 5743 if (item == NULL) |
5744 return; | 5744 return; |
5745 item->di_tv.v_lock = 0; | |
5746 item->di_tv.v_type = VAR_CHANNEL; | 5745 item->di_tv.v_type = VAR_CHANNEL; |
5747 item->di_tv.vval.v_channel = job->jv_channel; | 5746 item->di_tv.vval.v_channel = job->jv_channel; |
5748 if (job->jv_channel != NULL) | 5747 if (job->jv_channel != NULL) |
5749 ++job->jv_channel->ch_refcount; | 5748 ++job->jv_channel->ch_refcount; |
5750 if (dict_add(dict, item) == FAIL) | 5749 if (dict_add(dict, item) == FAIL) |