zsh-workers
 help / color / mirror / code / Atom feed
* bindkey '^@' self-insert => ZLE gets confused
@ 1995-07-19  3:24 Zefram
  0 siblings, 0 replies; only message in thread
From: Zefram @ 1995-07-19  3:24 UTC (permalink / raw)
  To: Z Shell workers mailing list

-----BEGIN PGP SIGNED MESSAGE-----

The patch below prevents the insertion of the NUL character into the
edit buffer.  At the moment, quoted-insert won't allow a NUL, but
self-insert will.  I change this so that self-insert will reject a NUL,
and quoted-insert will simply pass a NUL on to selfinsert().

 -zefram

      *** Src/zle_misc.c.1.1	1995/07/19 02:37:42
      --- Src/zle_misc.c	1995/07/19 03:04:26
      ***************
      *** 38,43 ****
      --- 38,47 ----
        {
            int ncs = cs + mult;
        
      +     if(!c) {
      + 	feep();
      + 	return;
      +     }
            if (complexpect && isset(AUTOPARAMKEYS)) {
        	if (complexpect == 2 && c == '}') {
        	    if (!menucmp || line[cs-1] == '/' || addedsuffix) {
      ***************
      *** 400,409 ****
        #ifndef HAS_TIO
            setterm();
        #endif
      !     if (c > 0)
      ! 	selfinsert();
      !     else
        	feep();
        }
        
        /**/
      --- 404,413 ----
        #ifndef HAS_TIO
            setterm();
        #endif
      !     if (c < 0)
        	feep();
      +     else
      + 	selfinsert();
        }
        
        /**/

-----BEGIN PGP SIGNATURE-----
Version: 2.6.i

iQBVAgUBMAx6lmWJ8JfKi+e9AQEiVwH/Q3SismHCimni/aalCM9EklE14zZbwdDa
GrnQK00N2uvOz8ST6BQgWWExwi6xcCjJNKAKkVU/YQemkZLTlQh52w==
=jUwM
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-07-19  3:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-07-19  3:24 bindkey '^@' self-insert => ZLE gets confused Zefram

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