1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-12 13:21:15 +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; char *s = statusline;
int sl = statusll, ocl = clearlist; int sl = statusll, ocl = clearlist;
if (!zleactive) {
zerrnam(name, "can only be called from widget function", NULL, 0);
return 1;
}
statusline = NULL; statusline = NULL;
statusll = 0; statusll = 0;
if (*args) { if (*args) {
@ -435,6 +439,10 @@ bin_zle_unget(char *name, char **args, char *ops, char func)
{ {
char *p = *args; char *p = *args;
if (!zleactive) {
zerrnam(name, "can only be called from widget function", NULL, 0);
return 1;
}
while (*p) while (*p)
ungetkey((int) *p++); ungetkey((int) *p++);
return 0; return 0;