ob.el fixed bug when inserting into empty buffer

* lisp/ob.el (org-babel-insert-result): ensures `beg' is set, even if
  no previous result exists
This commit is contained in:
Eric Schulte 2010-08-08 22:01:17 -06:00
parent 043f088753
commit 693cea9bb9
1 changed files with 2 additions and 1 deletions

View File

@ -1187,7 +1187,8 @@ code ---- the results are extracted in the syntax of the source
(results-switches
(cdr (assoc :results_switches (nth 2 info))))
beg end)
(when existing-result
(if (not existing-result)
(setq beg (point))
(goto-char existing-result)
(save-excursion
(re-search-forward "#" nil t)