Skip to content

Commit

Permalink
Use x-selection-value-internal for accessing x selection (fix #580)
Browse files Browse the repository at this point in the history
This function selects an encoding according to the variable
`x-select-request-type`. Does this change work on non-X systems, too?
  • Loading branch information
f-fr committed Sep 28, 2015
1 parent eabde2f commit f4bf96e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions evil-common.el
Original file line number Diff line number Diff line change
Expand Up @@ -2021,9 +2021,9 @@ The following special registers are supported.
(and (< reg (length kill-ring))
(current-kill reg t))))
((eq register ?*)
(x-get-selection-value))
(x-selection-value-internal 'PRIMARY))
((eq register ?+)
(x-get-clipboard))
(x-selection-value-internal 'CLIPBOARD))
((eq register ?\C-W)
(unless (evil-ex-p)
(user-error "Register <C-w> only available in ex state"))
Expand Down

0 comments on commit f4bf96e

Please sign in to comment.