int mid;
if (vd->viewpoint) {
- call("CountLines", p, 0, vd->viewpoint);
+ call("CountLines", ci->focus, 0, vd->viewpoint);
vpln = attr_find_int(*mark_attr(vd->viewpoint),
"line");
} else if (pm) {
- call("CountLines", p, 0, pm);
+ call("CountLines", ci->focus, 0, pm);
vpln = attr_find_int(*mark_attr(pm), "line");
}
if (!ci->mark)
return Enoarg;
- call("CountLines", ci->home, 0, ci->mark);
+ call("CountLines", ci->focus, 0, ci->mark);
pos = attr_find_int(*mark_attr(ci->mark), "char") - 1;
while (rpt > 0 && ch != WEOF) {
if (!ci->mark)
return Enoarg;
- call("CountLines", ci->home, 0, ci->mark);
+ call("CountLines", ci->focus, 0, ci->mark);
pos = attr_find_int(*mark_attr(ci->mark), "char") - 1;
buf_init(&ret);
if (!ci->mark)
return Enoarg;
- call("CountLines", ci->home, 0, ci->mark);
+ call("CountLines", ci->focus, 0, ci->mark);
from = attr_find_int(*mark_attr(ci->mark), "char") - 1;
to = from & ~0xF;