summaryrefslogtreecommitdiffstats
path: root/src/change.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-05-27 17:26:55 +0100
committerBram Moolenaar <Bram@vim.org>2022-05-27 17:26:55 +0100
commitcfe456543e840d133399551f8626d985e1fb1958 (patch)
tree88e1820132eef74ed7abab2334d51019cb6f47d2 /src/change.c
parent02e8d4e4ffcdd6ee919e19692d591da8e18a565d (diff)
patch 8.2.5029: "textlock" is always zerov8.2.5029
Problem: "textlock" is always zero. Solution: Remove "textlock" and rename "textwinlock" to "textlock". (closes #10489)
Diffstat (limited to 'src/change.c')
-rw-r--r--src/change.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/change.c b/src/change.c
index b653dcc1b6..a9927e0fde 100644
--- a/src/change.c
+++ b/src/change.c
@@ -324,7 +324,7 @@ f_listener_remove(typval_T *argvars, typval_T *rettv)
next = lnr->lr_next;
if (lnr->lr_id == id)
{
- if (textwinlock > 0)
+ if (textlock > 0)
{
// in invoke_listeners(), clear ID and delete later
lnr->lr_id = 0;
@@ -401,7 +401,7 @@ invoke_listeners(buf_T *buf)
argv[4].v_type = VAR_LIST;
argv[4].vval.v_list = buf->b_recorded_changes;
- ++textwinlock;
+ ++textlock;
for (lnr = buf->b_listener; lnr != NULL; lnr = lnr->lr_next)
{
@@ -421,7 +421,7 @@ invoke_listeners(buf_T *buf)
prev = lnr;
}
- --textwinlock;
+ --textlock;
list_unref(buf->b_recorded_changes);
buf->b_recorded_changes = NULL;