From a557cfcfc6708ded38e1c20df44ea4665ee406d9 Mon Sep 17 00:00:00 2001 From: Bastien Date: Mon, 3 Feb 2020 10:05:52 +0100 Subject: [PATCH] org-table.el: Fix `org-table-set-header-line-format' * lisp/org-table.el (org-table-set-header-line-format): Skip non-data rows correctly. --- lisp/org-table.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-table.el b/lisp/org-table.el index 8c4e0d1f3..82bd8a280 100644 --- a/lisp/org-table.el +++ b/lisp/org-table.el @@ -492,7 +492,7 @@ existing value of `header-line-format' we might want to restore." (tbeg (save-excursion (goto-char beg) (while (or (org-at-table-hline-p) - (looking-at-p ".*|\\s-+<[0-9]+>")) + (looking-at-p ".*|\\s-+<[rcl]?\\([0-9]+\\)?>")) (move-beginning-of-line 2)) (point)))) (if (< tbeg (save-excursion (move-to-window-line 0) (point)))