zsh-workers
 help / color / mirror / code / Atom feed
From: "zhuzhzh@163.com" <zhuzhzh@163.com>
To: zsh-workers <zsh-workers@zsh.org>
Subject: crash when Tab is pressed multiple times with zimfw installed
Date: Wed, 26 Apr 2023 00:27:23 +0800	[thread overview]
Message-ID: <202304260027217553887@163.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3610 bytes --]

Hi Expert,

I update my zsh. Then it will crash if I press Tab key multiple times.

I have zimfw (https://zimfw.sh/) installed, which use some plugins like

zmodule zsh-users/zsh-syntax-highlighting
zmodule zsh-users/zsh-autosuggestions

If I doesn't enable them,  the crash doesn't occur.


I find the issue is brought since the commit f93ad02b94bd18c96a0861506127e3a246fb8eec .
See the details below.

Regards,
Harris




$ git bisect good
f93ad02b94bd18c96a0861506127e3a246fb8eec is the first bad commit
commit f93ad02b94bd18c96a0861506127e3a246fb8eec
Author: Bart Schaefer <schaefer@zsh.org>
Date:   Sat Jan 21 19:18:15 2023 -0800

    51310: zle -F handlers preserve LASTWIDGET

    Also fix email address in an old ChangeLog entry

 ChangeLog          | 6 +++++-
 Src/Zle/zle_main.c | 2 ++
 2 files changed, 7 insertions(+), 1 deletion(-)

$ git show f93ad02b94bd18c96a0861506127e3a246fb8eec
commit f93ad02b94bd18c96a0861506127e3a246fb8eec
Author: Bart Schaefer <schaefer@zsh.org>
Date:   Sat Jan 21 19:18:15 2023 -0800

    51310: zle -F handlers preserve LASTWIDGET

    Also fix email address in an old ChangeLog entry


Δ ChangeLog
────────────────────────────────────────────────────────────────────────────

─────┐
• 1: │
─────┘
2023-01-21  Bart Schaefer  <schaefer@zsh.org>

    * 51310: Src/Zle/zle_main.c: zle -F handlers preserve LASTWIDGET

2023-01-16  Peter Stephenson  <p.stephenson@samsung.com>

    * 51278: Src/params.c, Test/D06subscript.ztst: result of (i)

───────┐
• 631: │
───────┘

    * 49960: Doc/Zsh/compsys.yo: Sort lists in zshcompsys.

2022-04-05  Bart Schaefer  <schaefer@toltec-ubuntu>
2022-04-05  Bart Schaefer  <schaefer@zsh.org>

    * 49994: Src/glob.c: Single-byte equivalence of users/22601 and
    workers/40891 for matching against zero-length strings

Δ Src/Zle/zle_main.c
────────────────────────────────────────────────────────────────────────────

───────────────────────────────────────────────────────────┐
• 737: raw_getbyte(long do_keytmout, char *cptr, int full) │
───────────────────────────────────────────────────────────┘
            ) {
            /* Handle the fd. */
            char *fdbuf;
            Thingy save_lbindk = lbindk;
            {
                char buf[BDIGBUFSIZE];
                convbase(buf, lwatch_fd->fd, 10);

───────────────────────────────────────────────────────────┐
• 780: raw_getbyte(long do_keytmout, char *cptr, int full) │
───────────────────────────────────────────────────────────┘
                 */
                errtry = 1;
            }
            lbindk = save_lbindk;
            }
        }
        /* Function may have invalidated the display. */

[-- Attachment #2: Type: text/html, Size: 5682 bytes --]

                 reply	other threads:[~2023-04-25 16: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=202304260027217553887@163.com \
    --to=zhuzhzh@163.com \
    --cc=zsh-workers@zsh.org \
    /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).