org-table: Also copy special star marker upon creating a row

* lisp/org-table.el (org-table-insert-row): Copy "*" character when in
  first column, as it is considered as a special marker then.
This commit is contained in:
Nicolas Goaziou 2019-01-12 11:36:40 +01:00
parent 34e5dcfb06
commit ae497f365e
1 changed files with 1 additions and 1 deletions

View File

@ -1604,7 +1604,7 @@ With prefix ARG, insert below the current line."
(let* ((line (buffer-substring (line-beginning-position) (line-end-position)))
(new (org-table-clean-line line)))
;; Fix the first field if necessary
(when (string-match "^[ \t]*| *[#$] *|" line)
(when (string-match "^[ \t]*| *[#*$] *|" line)
(setq new (replace-match (match-string 0 line) t t new)))
(beginning-of-line (if arg 2 1))
;; Buffer may not end of a newline character, so ensure