zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: Miscellaneous buglettes
Date: Mon, 6 Sep 1999 11:34:02 +0200 (MET DST)	[thread overview]
Message-ID: <199909060934.LAA29777@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Adam Spiers's message of Sun, 5 Sep 1999 22:45:40 +0100


Adam Spiers wrote:

>   - zle -R foo from the command line prints garbage.

It shouldn't be possible to call it outside widget functions.

Bye
 Sven

diff -u os/Zle/zle_thingy.c Src/Zle/zle_thingy.c
--- os/Zle/zle_thingy.c	Thu Sep  2 11:39:18 1999
+++ Src/Zle/zle_thingy.c	Mon Sep  6 11:32:52 1999
@@ -399,6 +399,10 @@
     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 @@
 {
     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;

--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


             reply	other threads:[~1999-09-06  9:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-06  9:34 Sven Wischnowsky [this message]
  -- strict thread matches above, loose matches on Subject: below --
1999-09-06  9:55 Sven Wischnowsky
1999-09-06  9:39 Sven Wischnowsky
1999-09-05 21:45 Adam Spiers
1999-09-06  9:01 ` Peter Stephenson
1999-09-06 10:27   ` Adam Spiers
1999-09-06 18:55 ` Tanaka Akira

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199909060934.LAA29777@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).