diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2019-06-28 00:05:44 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2019-06-28 00:05:44 +0200 |
commit | 0553f2e31c64fb1551d9d95bbf4a2355de8914fb (patch) | |
tree | 25d78d630cd970faebaf9771ce9a5f2e9e8e4965 | |
parent | 0d7d12ffe6114c500cd1f183e9a2c74ba1974093 (diff) | |
download | org-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.el | 1 |
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) |