From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19018 invoked by alias); 10 Dec 2010 10:40:17 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15649 Received: (qmail 21018 invoked from network); 10 Dec 2010 10:40:15 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.216.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=+D5a+ICpe1F219bFPT9hFqIG1xpYc8fqrEttM0TYBYo=; b=HT7sCBZWfi0gZKI+gODQYCjhQ84kotlCZJDlIyQr19ECNwLJFkh+ucI8f5JQMf/f8O 1kWcE6cRDFHmLcKUmeCCrto6rl97rp2kBQdhd4ewGlj+If6Y337+YB5PuKgPdg04o/6L 3aOua1zA4G6uOvuqb2+ZcQAm0pdesp1qscKmw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; b=VDBu96rVuWWXA2/7TzvICh+cZc+plC0WO4x1c/OtlIkvfoYY6P52q3NsTc4rGEJjJW 2tWs91A86EdD2Er1wrN2GHQ+EieGE7PCcoEkFLIqHaN+yJVlttOIrWkOIygQLoM2F6GB IZiH3bh0N6u+DTjEAEuSVq2SlCO2qLUub3h1o= MIME-Version: 1.0 Sender: nikolai.weibull@gmail.com Date: Fri, 10 Dec 2010 11:40:11 +0100 X-Google-Sender-Auth: KVjN6i-3g5fOCTkuTMKCPMPKPwI Message-ID: Subject: =?UTF-8?Q?zle_reset=2Dprompt_with_prompt_that_is_COLUMNS_wide_ea?= =?UTF-8?Q?ts_line_above_prompt=E2=80=99s_first_line?= From: Nikolai Weibull To: Zsh Users Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi! Running zle reset-prompt with a prompt that is COLUMNS wide eats the line above prompt=E2=80=99s first line. Here=E2=80=99s a set-up to try it = with: PS1=3D${(l:COLUMNS:)}$'\n' bindkey '^^' reset-prompt Each time you press CTRL-^ you=E2=80=99ll be eating the line above the firs= t line of the prompt. If you change PS1 to ${(l:COLUMNS-1)}$'\n' this doesn=E2=80=99t happen. Would it be possible to have prompt that is COLUMNS wide and have this not happen?