Skip to content
Browse files

small fix to kvcmp to handle nil

  • Loading branch information...
1 parent 3de114b commit 929bbec5f8ced924fe3e2302f1b8df30caa4d610 @nicferrier committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 kv.el
View
4 kv.el
@@ -163,8 +163,8 @@ cons cells."
"Do a comparison of the two values using printable syntax.
Use this as the function to pass to `sort'."
- (string-lessp (format "%S" a)
- (format "%S" b)))
+ (string-lessp (if a (format "%S" a) "")
+ (if b (format "%S" b) "")))
(defun kvdotassoc-fn (expr table func)
"Use the dotted EXPR to access deeply nested data in TABLE.

0 comments on commit 929bbec

Please sign in to comment.
Something went wrong with that request. Please try again.