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

Escape `%` chars if present in the symbol value #550

Merged
merged 1 commit into from Jun 10, 2016

Conversation

Projects
None yet
2 participants
@kaushalmodi
Contributor

kaushalmodi commented Jun 10, 2016

  • counsel-set-variable: The current value of the variable to be modified
    is displayed in the ivy prompt. If the symbol value has literal '%'
    characters they need to be escaped to '%%' so that they are not
    processed by ivy--reset-state.
Escape `%` chars if present in the symbol value
* counsel-set-variable: The current value of the variable to be modified
  is displayed in the ivy prompt.  If the symbol value has literal '%'
  characters they need to be escaped to '%%' so that they are not
  processed by `ivy--reset-state`.
@kaushalmodi

This comment has been minimized.

Contributor

kaushalmodi commented Jun 10, 2016

Without this, if I have

(setq ivy-count-format "%d/%d ")

and if I call counsel-set-variable on that, those %d in "%d/%d " will be processed by ivy--reset-state.

@abo-abo abo-abo merged commit cd8a570 into abo-abo:master Jun 10, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@abo-abo

This comment has been minimized.

Owner

abo-abo commented Jun 10, 2016

Thanks.

@kaushalmodi kaushalmodi deleted the kaushalmodi:escape-%-in-counsel-set-variable-ivy-prompt branch Jun 10, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment