summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2019-06-28 00:05:44 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2019-06-28 00:05:44 +0200
commit0553f2e31c64fb1551d9d95bbf4a2355de8914fb (patch)
tree25d78d630cd970faebaf9771ce9a5f2e9e8e4965
parent0d7d12ffe6114c500cd1f183e9a2c74ba1974093 (diff)
downloadorg-mode-0553f2e31c64fb1551d9d95bbf4a2355de8914fb.tar.gz
org-table: Fix `org-table-next-row' at eob
* lisp/org-table.el (org-table-next-row): Fix misbehaviour when called on the last row, at the end of the buffer, without a final newline.
-rw-r--r--lisp/org-table.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/org-table.el b/lisp/org-table.el
index 64c02b5..e141e48 100644
--- a/lisp/org-table.el
+++ b/lisp/org-table.el
@@ -1081,6 +1081,7 @@ Before doing so, re-align the table if necessary."
(org-table-align))
(let ((col (org-table-current-column)))
(beginning-of-line 2)
+ (unless (bolp) (insert "\n")) ;missing newline at eob
(when (or (not (org-at-table-p))
(org-at-table-hline-p))
(beginning-of-line 0)