From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7862 invoked from network); 29 Jun 1999 11:16:31 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 29 Jun 1999 11:16:31 -0000 Received: (qmail 16612 invoked by alias); 29 Jun 1999 11:16:03 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6913 Received: (qmail 16605 invoked from network); 29 Jun 1999 11:16:03 -0000 Date: Tue, 29 Jun 1999 13:16:02 +0200 (MET DST) Message-Id: <199906291116.NAA20175@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: "Andrej Borsenkow"'s message of Tue, 29 Jun 1999 14:54:41 +0400 Subject: Re: PS1 or PS2 Andrej Borsenkow wrote: > I already wrote about this: when on PS2 up-line-or-history moves to previous > history event instead of previous line of current event. It just occured to me, > that something like > > if we-are-on-PS2 > zle .push-line-or-edit > zle .up-line-or-history > > would do quite nicely ... but how can I find out (in user defined widget) that I > am on PS2? The info is available (push-line-or-edit has it) - is it possible to > make it available to user widgets as well? I haven't tried, but [[ -z "$PREBUFFER" ]] should work. Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de