From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 00c7e169 for ; Fri, 18 Oct 2019 16:23:54 +0000 (UTC) Received: (qmail 5291 invoked by alias); 18 Oct 2019 16:23:49 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 44850 Received: (qmail 20691 invoked by uid 1010); 18 Oct 2019 16:23:48 -0000 X-Qmail-Scanner-Diagnostics: from mail-io1-f46.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.0/25601. spamassassin: 3.4.2. Clear:RC:0(209.85.166.46):SA:0(-2.0/5.0):. Processed in 2.229389 secs); 18 Oct 2019 16:23:48 -0000 X-Envelope-From: mikachu@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.166.46 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=+10YYzT5jkhAlVo3cJ/fsItXLkTczT4XXPEMpDMJwGc=; b=goBMULXIhIVbqBHyzsd1kylDBmGbtcB2cWqIVbECvhqLUaLVI+eIArCqRMkfjHIT8+ YcCTFpKlGa0tugdPP7ZyCm/lIr4X/X4aLAjlxv/Fll9pBww0clZ2sfhvlGu0mOUkb2vG Hc108eyW2OOijzeHL2CI7v1Z4lbr2Y+kDt55jZw9A2dl2F/0tDfyMBtunbl2tkRA+zyX /t8nVZjDGYRh9Gbmpzd5inouMiRuWrhC2Hax+FfCZd/7JI4OH1YTrxD/4z4O+TqP3+o3 vCTmONE/SJL2/9hVTcJb/oMKsW0y1aIpGzSpSeo6VSwI0YZt1MXzqzZL9akTWGP9MB8F +PAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=+10YYzT5jkhAlVo3cJ/fsItXLkTczT4XXPEMpDMJwGc=; b=fcaeAwaIVo7eYd1noqd3xriT3LVsgSTH9wlyZlAZBlLlDa+0OVSXzDLghouAxdUw3U Tp8QaNwNcVX3090NdX4nzlWZgF0x+4Ux/q2JvkAbar+WK8413HG9Xb9v6iZAJGFg8Yq4 /vw4AkbPHTULxhQ6W/AToq8tkjXPQgWt/ZjqW7Zr/mE+RFgetb6P5NjzvtXj6E3mbzd2 m4V4acq7iWZ5C5iy7nloFbAZoag7WaWTxImN6kMwv4dOJbo7D/SQK87/R0E8Q2Z/oKc+ VELkwK3G9Rcl5RKqMjtxH+MJPobgOYxUJEufsi0D9X1NSuAwXvdboqau5LCtdBR+RPGH Ojjw== X-Gm-Message-State: APjAAAWwROg/rIlkpgzPbSgg58jrOCYmOKx0fD8gMl4jfNXDvws2iCGc mXZeO10poWHcYSTBt7gmzCEJYVgMbe+TQPpWDU6BjgiF X-Google-Smtp-Source: APXvYqwjwFr1B0/8rF1G5U3pTQ9QUoZyxpuJgQQZqYgwo1K4hK/mzVBMX5A5xQJb/Zxw+HsKhhU0/72vulowV1P8IM8= X-Received: by 2002:a6b:6018:: with SMTP id r24mr9634108iog.25.1571415793391; Fri, 18 Oct 2019 09:23:13 -0700 (PDT) MIME-Version: 1.0 From: Mikael Magnusson Date: Fri, 18 Oct 2019 18:23:12 +0200 Message-ID: Subject: zle -M doesn't work properly if the command line fills the screen To: zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" If you enter a very long command, and a widget tries to tell you something, you won't see it, instead the topmost line of the screen is just scrolled off and then an identical screen is redrawn immediately, erasing the zle -M message. Completion is also almost useless in this case, you won't see any of the options, and menu selection can't even be entered. reproduce: % msg() zle -M hello; zle -N msg; bindkey M msg press alt-10000 a (or make the terminal smaller), then hit M More generally, it would be nice if you could set the amount of lines zle will use for a command (even multiline ones); you might not always want to fill the entire screen. We already avoid drawing more than fits on the screen by using the >.... <.... markers, so it should be possible to do the same with less than the whole screen, but I couldn't quite figure out the code when I looked at it. -- Mikael Magnusson