Browse Source

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.
Nicolas Goaziou 4 months ago
parent
commit
ae497f365e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-table.el

+ 1 - 1
lisp/org-table.el

@@ -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