1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-06 11:21:22 +02:00

manual/7654

This commit is contained in:
Tanaka Akira 1999-09-06 11:21:30 +00:00
parent caf6190251
commit 232d1c5445

View file

@ -399,6 +399,10 @@ bin_zle_refresh(char *name, char **args, char *ops, char func)
char *s = statusline;
int sl = statusll, ocl = clearlist;
if (!zleactive) {
zerrnam(name, "can only be called from widget function", NULL, 0);
return 1;
}
statusline = NULL;
statusll = 0;
if (*args) {
@ -435,6 +439,10 @@ bin_zle_unget(char *name, char **args, char *ops, char func)
{
char *p = *args;
if (!zleactive) {
zerrnam(name, "can only be called from widget function", NULL, 0);
return 1;
}
while (*p)
ungetkey((int) *p++);
return 0;