Explorar o código

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 %!s(int64=14) %!d(string=hai) anos
pai
achega
4f5b6317b5
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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))