Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[BUG]: zle-line-pre-redraw breaks vi-repeat-change
- X-seq: zsh-workers 47432
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: [BUG]: zle-line-pre-redraw breaks vi-repeat-change
- Date: Wed, 7 Oct 2020 14:49:13 +0200
- Archived-at: <https://zsh.org/workers/47432>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2020-10/CAN%3D4vMrW8jtzoAATn888q%3DrXpukYTt6V6HEdGGo-tVn%3DVaoz-A%40mail.gmail.com>
- Authentication-results: zsh.org; iprev=pass (mail-il1-f177.google.com) smtp.remote-ip=209.85.166.177; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=NXeePaSO8f+8rrN9xrILeQXKph2Ouxt5Nav9hb+71W0=; b=kq7pkkZoiry+elvk6LemaHgT3veK6Ppb/V7POwOXVhW0P4L9pgQGJd8i8gPNF8pJLV ZF809l20JIkdx0gq9/eWNUTFphMJgFDGDf/0I6OpCGdEkPjqzH2XnXKh3gSRG1kUVDvh g8+dsZrWO7+JVhbreLLRGFsMkmW9sG4YmOv0ch+VJ8CNNjThc6HfyMePRIxztCt7dUso N4li96JK9laz3Vef1hGawTvLnoOsb6gdFedoYnFd/7C/tVmoE6G+ErqkKKcRKiAaKf1W 3Kfbp9MlWn0m7sged+GltdFsZdUK1lJFUiNDJ8TCF4eYeR61zUOikPC6ek9/DHI096Wb nr4Q==
- List-archive: <http://www.zsh.org/sympa/arc/zsh-workers>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-workers.zsh.org>
- List-owner: <mailto:zsh-workers-request@zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-workers>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-workers>
- Sender: zsh-workers-request@xxxxxxx
If zle-line-pre-redraw is defined, vi-repeat-change behaves as if the
numeric argument was always 1.
To reproduce from `zsh -f`:
% function zle-line-pre-redraw() {}
% zle -N zle-line-pre-redraw
% bindkey -v
% 123456<ESC><2X><.>
The last line in more detail:
- "123456" is self-insert
- ESC is vi-cmd-mode
- "2X" is vi-backward-delete-char with NUMERIC = 2
- "." is vi-repeat-change
Expected: BUFFER contains "16".
Actual: BUFFER contains "126".
The actual behavior is unchanged if <.> is replaced with <3.>. The
expected BUFFER in this case is "6".
Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author