zsh-workers
 help / color / mirror / code / Atom feed
* Bug with special vars in user-widgets
@ 1998-12-04 14:06 Sven Wischnowsky
  1998-12-07 13:35 ` PATCH: 3.1.5: " Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Sven Wischnowsky @ 1998-12-04 14:06 UTC (permalink / raw)
  To: zsh-workers


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@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-12-07 13:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-12-04 14:06 Bug with special vars in user-widgets Sven Wischnowsky
1998-12-07 13:35 ` PATCH: 3.1.5: " Peter Stephenson

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