Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Line number in multline editing buffer?



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 ...



Messages sorted by: Reverse Date, Date, Thread, Author