forked from aniani/vim
patch 8.1.2211: listener callback "added" argument is not the total
Problem: Listener callback "added" argument is not the total. (Andy Massimino) Solution: Compute the total. (closes #5105)
This commit is contained in:
@@ -371,9 +371,9 @@ invoke_listeners(buf_T *buf)
|
||||
if (start > lnum)
|
||||
start = lnum;
|
||||
lnum = dict_get_number(li->li_tv.vval.v_dict, (char_u *)"end");
|
||||
if (lnum > end)
|
||||
if (end < lnum)
|
||||
end = lnum;
|
||||
added = dict_get_number(li->li_tv.vval.v_dict, (char_u *)"added");
|
||||
added += dict_get_number(li->li_tv.vval.v_dict, (char_u *)"added");
|
||||
}
|
||||
argv[1].v_type = VAR_NUMBER;
|
||||
argv[1].vval.v_number = start;
|
||||
|
Reference in New Issue
Block a user