mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-29 18:36:26 +00:00
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.
This commit is contained in:
parent
06d36ee60b
commit
a557cfcfc6
|
@ -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)))
|
||||
|
|
Loading…
Reference in a new issue