Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Line number in multline editing buffer?
On Fri, 26 Sep 2014 22:00:48 -0700
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> 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 ...
>
Excellent, thank you, Bart!
Messages sorted by:
Reverse Date,
Date,
Thread,
Author