-
Notifications
You must be signed in to change notification settings - Fork 3
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 some length usage #27
Conversation
The changes look good to me but the CI disagrees... |
ocaml-eglot-type-enclosing.el
Outdated
@@ -134,7 +134,7 @@ If CURRENT is set, the range of the enclosing will be highlighted." | |||
(font-lock-fontify-region (point-min) (point-max)) | |||
(buffer-string))) | |||
(display-buffer ocaml-eglot-type-buffer-name)) | |||
(when (and current (> (length ocaml-eglot-type-enclosing-types) 0)) | |||
(when (and current (not (null ocaml-eglot-type-enclosing-types))) |
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.
Is this really doing the same thing ? Are lisp lists null
when they are empty ?
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.
Yes, following my experiments. But I'll add some illustration test
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.
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.
The main issue is the fact that it does not work on vector. So (null [])
will return nil
.
fix #25