zsh-workers
 help / color / mirror / code / Atom feed
From: Bernd Eggink <eggink@rrz.uni-hamburg.de>
To: zsh-workers mailing list <zsh-workers@math.gatech.edu>
Subject: vared bug in 3.1.2 found
Date: Thu, 20 Nov 1997 14:12:00 +0100	[thread overview]
Message-ID: <34743720.833FF333@rrz.uni-hamburg.de> (raw)

This patch corrects a bug in zle_main.c which causes 'vared' to crash
when being called in a subshell (as variable 'curkeymapname' is
undefined):

*** zle_main.c.old      Thu Nov 20 13:54:41 1997
--- zle_main.c  Thu Nov 20 13:55:19 1997
***************
*** 386,391 ****
--- 386,392 ----
        addedsuffix = complexpect = vichgflag = 0;
        viinsbegin = 0;
        statusline = NULL;
+       selectkeymap("main", 1);
        if ((s = (unsigned char *)getlinknode(bufstack))) {
            setline((char *)s);
            zsfree((char *)s);
***************
*** 412,418 ****
        initmodifier(&zmod);
        prefixflag = 0;
        feepflag = 0;
-       selectkeymap("main", 1);
        refresh();
        while (!done && !errflag) {
  
--- 413,418 ----

Regards,
	Bernd

--
Bernd Eggink
Regionales Rechenzentrum der Uni Hamburg
eggink@rrz.uni-hamburg.de
http://www.rrz.uni-hamburg.de/eggink/BEggink.html


                 reply	other threads:[~1997-11-20 13:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=34743720.833FF333@rrz.uni-hamburg.de \
    --to=eggink@rrz.uni-hamburg.de \
    --cc=zsh-workers@math.gatech.edu \
    /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).