-
Notifications
You must be signed in to change notification settings - Fork 281
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue 1295: failed visual-paste from registers >1
The `kill-ring` let binding in `evil-visual-paste` meant that `evil-get-register`'s view of `kill-ring` (used in `evil-paste-before` and `evil-paste-after`) was limited to only entry `0` (and whatever `evil-delete` may have added to rebound `kill-ring`). Therefore, registers >1 were not actually visible to functions that needed them. Condensing the `let*` binding so `kill-ring-yank-pointer` is bound directly to `(list (current-kill 0))` was chosen as a simple and effective method to fix the bug. Test added to `evil-test-visual-paste` to ensure higher number registers are available to visual-paste.
- Loading branch information
Showing
2 changed files
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25fc5c6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tomdl89 This commit breaks the functionality of
evil-kill-on-visual-paste
. Whenevil-kill-on-visual-paste
isnil
, it should not copy stuff to the kill ring on visual paste, but this commit makes it does it.