zsh-workers
 help / color / mirror / code / Atom feed
* bindkey even worse
@ 1995-11-01 11:02 Peter William Stephenson
  1995-11-02  2:33 ` Richard Coleman
  0 siblings, 1 reply; 2+ messages in thread
From: Peter William Stephenson @ 1995-11-01 11:02 UTC (permalink / raw)
  To: Zsh hackers list

This time, printbinding() is looking for a string to print out when it
should be looking for a key name.

*** Src/zle_main.c.bk	Sun Oct 29 11:50:39 1995
--- Src/zle_main.c	Wed Nov  1 11:58:24 1995
***************
*** 824,833 ****
      Key k = (Key) hn;
      int len;
  
!     if (k->func == z_undefinedkey)
  	return;
      putc('\"', bindout);
!     printbind(k->str, (len = strlen(k->str)) ? len : 1);
      fprintf(bindout, "\"\t");
      if (k->func == z_sendstring) {
  	putc('\"', bindout);
--- 824,833 ----
      Key k = (Key) hn;
      int len;
  
!     if (!k || k->func == z_undefinedkey)
  	return;
      putc('\"', bindout);
!     printbind(k->nam, (len = strlen(k->nam)) ? len : 1);
      fprintf(bindout, "\"\t");
      if (k->func == z_sendstring) {
  	putc('\"', bindout);

-- 
Peter Stephenson <pws@ifh.de>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77330
Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.



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

end of thread, other threads:[~1995-11-02  3:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-11-01 11:02 bindkey even worse Peter William Stephenson
1995-11-02  2:33 ` Richard Coleman

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