zsh-workers
 help / color / mirror / code / Atom feed
* [BUG]: zle-line-pre-redraw breaks vi-repeat-change
@ 2020-10-07 12:49 Roman Perepelitsa
  2020-10-07 13:25 ` Peter Stephenson
  2020-12-16  8:33 ` Roman Perepelitsa
  0 siblings, 2 replies; 6+ messages in thread
From: Roman Perepelitsa @ 2020-10-07 12:49 UTC (permalink / raw)
  To: Zsh hackers list

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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-01-27 10:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-07 12:49 [BUG]: zle-line-pre-redraw breaks vi-repeat-change Roman Perepelitsa
2020-10-07 13:25 ` Peter Stephenson
2020-10-07 14:49   ` Roman Perepelitsa
2020-12-16  8:33 ` Roman Perepelitsa
2021-01-26 20:55   ` Paul
2021-01-27 10:06     ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).