zsh-workers
 help / color / mirror / code / Atom feed
* vared bug in 3.1.2 found
@ 1997-11-20 13:12 Bernd Eggink
  0 siblings, 0 replies; only message in thread
From: Bernd Eggink @ 1997-11-20 13:12 UTC (permalink / raw)
  To: zsh-workers mailing list

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-11-20 13:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-11-20 13:12 vared bug in 3.1.2 found Bernd Eggink

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).