Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Bug with special vars in user-widgets
- X-seq: zsh-workers 4701
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx
- Subject: Bug with special vars in user-widgets
- Date: Fri, 4 Dec 1998 15:06:07 +0100 (MET)
Hi
Try:
do-addx () {
LBUFFER="${LBUFFER}x"
}
zle -N do-addx
bindkey x do-addx
Then type `x' twice. This gives a segmentation fault because the
definitions of the widget special parameters from the first invocation
weren't deleted, so that createparam() returns zero in
makezleparams().
Removing the `| PM_SPECIAL' in line 74 in zle_params.c fixes this, but
I don't know if this is correct, so I won't produce a patch for this.
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author