Procházet zdrojové kódy

Merge branch 'master' of git+ssh://repo.or.cz/srv/git/org-mode

Carsten Dominik před 15 roky
rodič
revize
69ba4a181c
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      lisp/org-src.el

+ 2 - 2
lisp/org-src.el

@@ -240,8 +240,8 @@ buffer."
 	    block-nindent (nth 5 info)
 	    lang-f (intern (concat lang "-mode"))
 	    begline (save-excursion (goto-char beg) (org-current-line)))
-      (if (and mark (>= mark beg) (<= mark end))
-	  (save-excursion (goto-char mark)
+      (if (and mark (>= mark beg) (<= mark (1+ end)))
+	  (save-excursion (goto-char (min mark end))
 			  (setq markline (org-current-line)
 				markcol (current-column))))
       (if (equal lang-f 'table.el-mode)