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

Bug with special vars in user-widgets



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