call("Mode:set-numeric", p, numeric);
}
-void pane_set_extra(struct pane *p safe, int extra)
-{
- call("Mode:set-extra", p, 0, NULL, NULL, extra);
-}
-
void pane_clear(struct pane *p safe, char *attrs)
{
call("pane-clear", p, 0, NULL, NULL, 0, NULL, attrs);
int pane_masked(struct pane *p safe, int x, int y, int abs_z, int *w, int *h);
void pane_set_mode(struct pane *p safe, char *mode);
void pane_set_numeric(struct pane *p safe, int numeric);
-void pane_set_extra(struct pane *p safe, int extra);
void pane_clear(struct pane *p safe, char *attrs);
char *pane_attr_get(struct pane *p, char *key safe);
char *pane_mark_attr(struct pane *p safe, struct mark *m safe, bool forward, char *key safe);
}
ret = call("Replace", ci->focus, 1, m, NULL, !ci->extra);
mark_free(m);
- pane_set_extra(ci->focus, 1);
+ call("Mode:set-extra", ci->focus, 1);
return ret;
}
call(mv->type+1, ci->focus, dir, ci->mark);
}
free(str);
- pane_set_extra(ci->focus, 1);
+ call("Mode:set-extra", ci->focus, 1);
}
mark_free(m);
cnt -= 1;
call("Move-View-Line", ci->focus, 0, ci->mark);
call("Display:refresh", ci->focus);
}
- call("Mode:set-extra", ci->focus, 0, NULL, NULL, 2| step);
+ call("Mode:set-extra", ci->focus, 2 | step);
return 1;
}
/* Key is "Chr-X" - skip 4 bytes to get X */
str = ci->key + 4;
ret = call("Replace", ci->focus, 1, ci->mark, str, !ci->extra);
- pane_set_extra(ci->focus, 1);
+ call("Mode:set-extra", ci->focus, 1);
return ret;
}
mark_to_mark(ci->mark, m);
mark_free(m);
}
- pane_set_extra(ci->focus, 0); /* A newline starts a new undo */
+ call("Mode:set-extra", ci->focus, 0); /* A newline starts a new undo */
return ret;
}
{
pane_set_mode(ci->focus, "M-");
pane_set_numeric(ci->focus, ci->numeric);
- pane_set_extra(ci->focus, ci->extra);
+ call("Mode:set-extra", ci->focus, ci->extra);
return 1;
}
rpt = rpt * 10 + *last - '0';
pane_set_numeric(ci->focus, neg ? -rpt : rpt);
- pane_set_extra(ci->focus, ci->extra);
+ call("Mode:set-extra", ci->focus, ci->extra);
return 1;
}
DEF_CMD(emacs_neg)
{
pane_set_numeric(ci->focus, - ci->numeric);
- pane_set_extra(ci->focus, ci->extra);
+ call("Mode:set-extra", ci->focus, ci->extra);
return 1;
}