-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consecutive delete-words do not get yanked consecutively #150
Comments
…andled zle widgets This restores the ability to consecutively delete (ie.) words and have them come back consecutively in the next yank.
Otherwise, we can't do `echo hello hello^W^W^Y` and get back `echo hello hello` (we get `echo hello` instead because ZLE doesn't detect two consecutive calls to backward-kill-word). I don't add more to this commit because other `*-kill-*` are less likely to be used twice in a row when working with the shell. But maybe, `kill-line` could be added too. Closes zsh-users#150.
I'm inclined to call this a zsh bug. With zsh-5.1-1-ga9df6aa:
Without the f() wrapper, the last line has @eras @vincentbernat Would you mind reporting this to the zsh project? |
This seems to be caused by the So one way to solve the problem would be to use @Mikachu's zle -P / zle -f patches (reposted) to set the |
Confirmed: Mikael's workers/36709 plus danielshahaf@bfa71c9 fix this issue. Once Mikael's patch is merged to zsh, we can merge that bfa71c9 here and close this issue as fixed. [edit: these patches fix issue #183 as well) |
workers/36709 was merged in zsh-users/zsh@a855d7b. The way forward is either:
|
Any update on this? I tried adding danielshahaf/zsh-syntax-highlighting@bfa71c9 but get |
tl;dr: You need to upgrade zsh to 5.2. The log message of that commit states that it depends on a zsh commit; that zsh commit was first released in 5.2 (more precisely, in the 5.1.1-test-* prereleases that preceded it): % git log --grep=36709
commit a855d7bd246ef44d5393c3088aae8214d41d2b85
Author: Mikael Magnusson <mikachu@gmail.com>
Date: Tue Sep 29 06:11:24 2015 +0200
36709: zle -f from inside widget to set flags and make yank start/end zle params writable
% git tag --contains=a855d7bd246ef44d5393c3088aae8214d41d2b85
5.1.1-test-2
zsh-5.1.1-test-1
zsh-5.1.1-test-2
zsh-5.1.1-test-3
zsh-5.2
⋮ |
Has the issue been resolved? I've tested HEAD and it doesn't seem to. |
The issue is not fixed on current master, but is fixed on the redrawhook branch, which is scheduled to be merged at some point after 0.7.0. (IIRC, this issue was fixed on master at some point, but the fix was later reverted; this is why this issue was closed and then reopened.) |
OK, thanks. |
When redrawhook is merged, this issue will be closed as fixed, though the fix will require zsh 5.9 (not yet released). If anyone needs a fix for older versions of zsh, look into writing a pull request around |
Steps to reproduce:
Expected behavior: "hello hello" would come back (works if zsh-syntax-highlighting is not enabled)
I sort of hoped #143 would have fixed this but no :).
The text was updated successfully, but these errors were encountered: