Browse Source

correctly position point when mapping hits an inline code block

* lisp/ob.el (org-babel-map-executables): Correctly position point when
  mapping hits an inline code block.
Eric Schulte 6 years ago
parent
commit
4f5b6317b5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lisp/ob.el

+ 1 - 0
lisp/ob.el

@@ -912,6 +912,7 @@ buffer."
 	 (goto-char (point-min))
 	 (while (re-search-forward ,rx nil t)
 	   (goto-char (match-beginning 1))
+	   (when (looking-at org-babel-inline-src-block-regexp)(forward-char 1))
 	   (save-match-data ,@body)
 	   (goto-char (match-end 0))))
        (unless visited-p (kill-buffer to-be-removed))