Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Incorrect cursor position when ZLE_RPROMPT_INDENT=0 (with a fix)
- X-seq: zsh-workers 44358
- From: "Daniel Shahaf" <d.s@xxxxxxxxxxxxxxxxxx>
- To: "Roman Perepelitsa" <roman.perepelitsa@xxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: Incorrect cursor position when ZLE_RPROMPT_INDENT=0 (with a fix)
- Date: Thu, 23 May 2019 21:36:13 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=mime-version:message-id:in-reply-to :references:date:from:to:subject:content-type; s=fm3; bh=QmQ6Zut txJhlOANn3VxL4Q2OMjCD7Jv4BfubdNOmMwE=; b=a/kNBvR+rxoDc6xbdqITAhc NvJbJroWBopii5tsA/ushyrlHXbzwcoGLy+EBcEANcNGjd/UDqmLR2OPDqqIz22n 1Vj+58x1LV5+U5W5vyT6542siCtj3JQqR3aJ0OMv0ckSIAFRT1H9Tl6U+uwntPee UtzYJm7OE9CLklbjGXHXqLyeuHD47+4n9s0a0QCsB3OZBFpCEEIBPTZkcGXn0ASU hmFOt9wJJF0DkdGlW2ueI3GWry870JdGAczdkRocMUq88prnAd06bT/RIHphKWcx si2aKjZ64gQQTDgL7zP5hVxiTJcRssYbiRlWWnor70YqN9nsiTCFHSkHAnDJRCA= =
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=QmQ6Zu ttxJhlOANn3VxL4Q2OMjCD7Jv4BfubdNOmMwE=; b=W6aHVaqE3Fr3eFoee0Ny3d t9TqCgdHC77L+VEq39wyko3TTZx8ED4igJnKVQBBrkZKxWoW1xWvAvWWuOY0zTkg bDJKH8JOkBU54OOL4OLYJnLLNWYW2y5yOQp3qehuFE84SfUgyQt6yb8MZaYmF5j3 6pDwZYE1sCo32jkHtupb4jyLcIf/tNxUMUpmkB64FxF6foDyMyB59CSxilFaJQFO bqCMuVA4OUSGWKrLEBpSYgUzJUCAAuoX/A1Y1OxZUbAK2COezpgJ39bzOZ7C38KS DEYfDbviVyGJrYuurjX6hAeFvXIQ0BrrbE6YeSwyyiSgT+VI32SKGyLOXjdNJRJA ==
- In-reply-to: <CAN=4vMqP+5KeCBa3cAZB8shtnc5YBvP2OrWVZ6yPC0tz_oGqMw@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAN=4vMpx_B5TRNQzDAvBoTFszoKea2=uQr5xjd0vZVH6py+oVA@mail.gmail.com> <CAH+w=7bYdLornMBJmjE_RHgiRcywT05FXkOQdSapZHkdT30X0A@mail.gmail.com> <CAN=4vMozz41wH3=ZOoe=tAx70bXnD1ieZFScY7Zauby-33UcXw@mail.gmail.com> <CAN=4vMpWA+2zeRjthq4aeXyb7AAc40BpfEz8O0Uaj23a1O_F6Q@mail.gmail.com> <CAN=4vMqaGT+baaxJsGS1TC9Y9EER3_sRiQn-AM2LkQ=cVp=1Dw@mail.gmail.com> <CAH+w=7buWyujVw-PqWuB40ywQ5BrePrTYWdkkB1Q6RSwuVeG8A@mail.gmail.com> <CAN=4vMr46PsxS-+gDSBU=mGeGMLtWsRxTp9wMAB87qL12serNQ@mail.gmail.com> <68081d8c-1aa6-203b-eb6c-e2d048de1340@ibr.cs.tu-bs.de> <CAN=4vMo9oZ19n5kwNiNDjSHQAnNJHXRBPSfZstN7QOvXgN3WrQ@mail.gmail.com> <CAKiz1a8wkSkCz6snNrQRdS3npNkMdC-yUgL7SKnKwHL_RZVSdg@mail.gmail.com> <CAN=4vMo9uK1BPqwAF=i7pEbOVuhhSWxVXi75Wb-pMjo9rvkRtQ@mail.gmail.com> <CAKiz1a8ZKX2JDwRsAEgHq-W9w4_A-8J6as57p7aa=jjR+tmgzA@mail.gmail.com> <CAN=4vMrWnwvRHKu+9QGaXK48odyFwn8ORQiJzkB+NBbjOOxiOw@mail.gmail.com> <CAKiz1a-nOkAe42JoxFRgMJ+LXZ3fgMxqgwNZOW+2Y45oqzu8hA@mail.gmail.com> <CAN=4vMpeG8sA3ReySo+8D3GP8=AT1gzNDgNHRZ8gDgVqy4OLNA@mail.gmail.com> <CAN=4vMqP+5KeCBa3cAZB8shtnc5YBvP2OrWVZ6yPC0tz_oGqMw@mail.gmail.com>
Roman Perepelitsa wrote on Thu, 23 May 2019 05:50 +00:00:
> Is there anything else I need to do to move this forward? The patch
> works on all terminals I and others have tried (11 in total; some with
> multiple versions and/or configurations). The code no longer
> special-cases ZLE_RPROMPT_INDENT=0, which is nice. There is branch for
> ZLE_RPROMPT_INDENT=0 but it's just an optimization to avoid an
> unnecessary zputc(&zr_cr) call when it's known to have no effect. So I
> think the logic is simpler now.
From the peanut gallery, this sounds ready to merge. Even if it does
cause a regression in some setup, hopefully that will come up in
prerelease testing.
Are there any other terminal emulators you'd like the patch to be tested
on? (By the list, not necessarily by you)
> I've attached the patch to the email. You can also find it at
> https://github.com/zsh-users/zsh/compare/master...romkatv:rprompt-indent.
In general, please always include patches with the email (inline or
text/* attachment) so they'll be archived. Feel free to add github
links too, of course.
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author