zsh-workers
 help / color / mirror / code / Atom feed
From: Zefram <A.Main@dcs.warwick.ac.uk>
To: zsh-workers@math.gatech.edu (Z Shell workers mailing list)
Subject: bindkey '^@' self-insert => ZLE gets confused
Date: Wed, 19 Jul 1995 04:24:23 +0100 (BST)	[thread overview]
Message-ID: <24630.199507190324@stone.dcs.warwick.ac.uk> (raw)

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


                 reply	other threads:[~1995-07-19  3:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=24630.199507190324@stone.dcs.warwick.ac.uk \
    --to=a.main@dcs.warwick.ac.uk \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).