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:
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;
|
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;
|
||||||
|
|
Loading…
Reference in a new issue