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 44341
- From: Charles Blake <charlechaud@xxxxxxxxx>
- To: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- Subject: Re: Incorrect cursor position when ZLE_RPROMPT_INDENT=0 (with a fix)
- Date: Mon, 20 May 2019 08:41:21 -0400
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XVN2H4ALcjqurxByIJIv4btdmeVhg7Ek2ufsrLdA9vQ=; b=myUMhRtIvJLe6fCZ6EeNzmXcuPXWwlzpkfhKnhmogo3KcncNoc+DzKo/RcOpcQkVR6 faREAiGQRT1yIouWjEkcCoVeTrx4mM8x1rslfttvNimBZC/mbW2tl7hciCrIxMqGAwnm zwDeMwpxeVo0abnlWpVtHKS6PJJQ4d+qkSuyk5PCFxwWCRw2FLxKEdmbo9rPUJW7L/Po 8f5Hddvz0CEfN00n6/OR5JggXLTTUABM10OlPc8tFwmI/jc5+KDg1X2VqF9o3Uli63Uu ELQ9FkWfmOhbKn/lRog2aQSsD0KgoeFxj8bCoUu9lYCjfC9Cz68uERvRQG0ba8C/PpKz 4PGA==
- In-reply-to: <CAN=4vMo9uK1BPqwAF=i7pEbOVuhhSWxVXi75Wb-pMjo9rvkRtQ@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>
So, feel free to confirm yourself with xterm -rw or resource/default or
menu setting of reverseWrap, but with your patch and reverseWrap enabled, I
get incorrect behavior of a different sort. The cursor is not left
immediately after the 2, but there is an intervening blank space of exactly
1 character. Flipping the menu item on/off and hitting enter in the shell
to force a refresh toggles the misbehavior.
As to whether this should be a "supported configuration", well that is for
the larger audience to decide. Obviously for N config bools there are 2^N
configs and supporting them all is probably between impractical and
impossible. However, the xterm man page under the -rw option section says
this one is specifically encouraged:
This is very useful for editing long shell command lines
and is encouraged.
I'm not sure why reverseWrap is not on by default..You'd have to ask Tom
Dickey that, but I would guess it is to support some popular shell/usage
mode. Or maybe the feature and documentation are vestiges from some long
bygone era. I haven't looked into it much.
In better news, I also got things to work both with/without your patch in
emacs shell mode under X11 emacs as well as terminal mode emacs -nw.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author