From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1249 invoked by alias); 27 Sep 2014 05:00:44 -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: 19170 Received: (qmail 13981 invoked from network); 27 Sep 2014 05:00:33 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <140926220048.ZM6105@torch.brasslantern.com> Date: Fri, 26 Sep 2014 22:00:48 -0700 In-reply-to: <20140926110002.1077e3a5@xs4all.nl> Comments: In reply to Joep van Delft "Line number in multline editing buffer?" (Sep 26, 11:00am) References: <20140926110002.1077e3a5@xs4all.nl> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: Line number in multline editing buffer? MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Sep 26, 11:00am, Joep van Delft wrote: } } I did not manage to find a way to determine the current line number } in a multiline buffer (the one after a history operation, so without } the $PS2)? The line number should be given by $(( ${#LBUFFER//[^$'\n']/} + 1 )) I leave it to you to hack up edit-command-line to pass that to your editor in the proper way ...