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

Fix corner case with locals display #1135

Merged
merged 1 commit into from
Jun 16, 2015
Merged

Fix corner case with locals display #1135

merged 1 commit into from
Jun 16, 2015

Conversation

Malabarba
Copy link
Member

Turns out you can't call max with no arguments. :P

(propertize (car l) 'face 'font-lock-variable-name-face)
(cider-font-lock-as-clojure (cadr l))))
locals "")))
(if (not locals) ""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not if locals? Sounds more natural to me.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When one of the if branches is something trivial like this I usually prefer to have it first, but I can reverse that if prefered.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, please reverse it. I'm averse to negative conditions.

@Malabarba
Copy link
Member Author

Done

bbatsov added a commit that referenced this pull request Jun 16, 2015
Fix corner case with locals display
@bbatsov bbatsov merged commit 7143a5c into clojure-emacs:master Jun 16, 2015
@bbatsov
Copy link
Member

bbatsov commented Jun 16, 2015

👍 Thanks!

@Malabarba Malabarba deleted the fix-locals branch June 17, 2015 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants