Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

vared bug in 3.1.2 found



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@xxxxxxxxxxxxxxxxxx
http://www.rrz.uni-hamburg.de/eggink/BEggink.html



Messages sorted by: Reverse Date, Date, Thread, Author