Skip to content
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

ivy-avy broken with ivy-set-display-transformer #1255

Closed
tmdemelo opened this issue Oct 29, 2017 · 0 comments
Closed

ivy-avy broken with ivy-set-display-transformer #1255

tmdemelo opened this issue Oct 29, 2017 · 0 comments

Comments

@tmdemelo
Copy link
Contributor

@tmdemelo tmdemelo commented Oct 29, 2017

  • Observed behavior:

Selecting a candidate with ivy-avy uses the text returned by the display transformer function.

  • Expected behavior:

ivy-avy uses the candidate text without changes by the display transformer function.

For example, with the following:

(defun my-display-transformer (text)
  (concat text "-foobar"))

(ivy-set-display-transformer 'ivy-switch-buffer 'my-display-transformer)

Then trying to switch to buffer <BUFFER-NAME> using ivy-avy switches to a buffer <BUFFER-NAME>-foobar instead.

Switching to a buffer without using ivy-avy works as expected.

I'll send a PR with a proposed fix.

tmdemelo added a commit to tmdemelo/swiper that referenced this issue Oct 29, 2017
When using a display transformer.

Fixes abo-abo#1255
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant