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

crash when Tab is pressed multiple times with zimfw installed



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

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

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

    * 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@xxxxxxx>

    * 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. */


Messages sorted by: Reverse Date, Date, Thread, Author