mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-29 22:47:56 +00:00
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:
parent
34e5dcfb06
commit
ae497f365e
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue