Explorar o código

ensure ob-get-src-block-info returns nil if not matches

* lisp/ob.el (org-babel-get-src-block-info): small but crucial fix,
  this should return nil if not match found
Eric Schulte %!s(int64=14) %!d(string=hai) anos
pai
achega
05054d5227
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lisp/ob.el

+ 1 - 1
lisp/ob.el

@@ -182,7 +182,7 @@ Returns a list
 	      (append (mapcar (lambda (el) (cons :var (org-babel-ref-parse (cdr el))))
 			      (org-babel-get-header params :var))
 		      (org-babel-get-header params :var 'other)))))
-    (append info (list name indent))))
+    (when info (append info (list name indent)))))
 
 (defun org-babel-confirm-evaluate (info)
   "Confirm evaluation of the code block INFO.