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:
parent
caf6190251
commit
232d1c5445
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue