The mark passed to CountLines/goto:line as 'mark' is handed to
doc:GotoLine as 'mark2', but that function expects 'mark'.
This works as the doc: function always gets point for mark if nothing
else is given. But it is wrong. Let's fix it.
Signed-off-by: NeilBrown <neil@brown.name>
if (ci->mark) {
if (ci->str && strcmp(ci->str, "goto:line") == 0 &&
ci->num != NO_NUMERIC) {
- call("doc:notify:doc:GotoLine", ci->focus, ci->num, NULL, NULL,
- 0, ci->mark);
+ call("doc:notify:doc:GotoLine", ci->focus, ci->num,
+ ci->mark);
}
call("doc:notify:doc:CountLines", ci->focus, async, NULL, NULL,
0, ci->mark);