patch 8.2.5029: "textlock" is always zero
Problem: "textlock" is always zero.
Solution: Remove "textlock" and rename "textwinlock" to "textlock".
(closes #10489)
diff --git a/src/change.c b/src/change.c
index b653dcc..a9927e0 100644
--- a/src/change.c
+++ b/src/change.c
@@ -324,7 +324,7 @@
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 @@
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 @@
prev = lnr;
}
- --textwinlock;
+ --textlock;
list_unref(buf->b_recorded_changes);
buf->b_recorded_changes = NULL;