branch: externals/org
commit 08c047a5071254b73b1b84b31386da9a145613f1
Merge: c274128997 5128460f94
Author: Ihor Radchenko <[email protected]>
Commit: Ihor Radchenko <[email protected]>

    Merge branch 'bugfix'
---
 lisp/org-table.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lisp/org-table.el b/lisp/org-table.el
index b1c6ef86d5..b5387e418e 100644
--- a/lisp/org-table.el
+++ b/lisp/org-table.el
@@ -494,6 +494,11 @@ This may be useful when columns have been shrunk."
           (redisplay)
           (let* ((ws (window-start))
                  (beg (save-excursion
+                        ;; Check table at window start, not at point.
+                        ;; Point might be after the table, or at
+                        ;; another table located below the one visible
+                        ;; on top.
+                        (goto-char ws)
                         (goto-char (org-table-begin))
                         (while (or (org-at-table-hline-p)
                                    (looking-at-p 
".*|\\s-+<[rcl]?\\([0-9]+\\)?>"))

Reply via email to