瀏覽代碼

babel: Fix check for zero length sequences when constructing hash key

	* ob.el (org-babel-sha1-hash): Fix check for zero length
	sequences
Dan Davison 14 年之前
父節點
當前提交
f2e547c657
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      lisp/ob.el

+ 2 - 1
lisp/ob.el

@@ -620,7 +620,8 @@ the current subtree."
 				(lambda (arg)
 				  (let ((v (cdr arg)))
 				    (when (and v (not (and (sequencep v)
-							   (> (length v) 0))))
+							   (not (consp v))
+							   (= (length v) 0))))
 				      (if (stringp v)
 					  (mapconcat #'identity
 						     (sort (split-string v)