summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2019-01-12 11:36:40 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2019-01-12 11:36:40 +0100
commitae497f365ee0aaf5af57821a2faf4e19183970e4 (patch)
treecc3c3f0038629a4a401e652c4c6374f3fe5c2be4
parent34e5dcfb06800802a5e06f13340d646b6d829f04 (diff)
downloadorg-mode-ae497f365ee0aaf5af57821a2faf4e19183970e4.tar.gz
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.
-rw-r--r--lisp/org-table.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-table.el b/lisp/org-table.el
index 9cea262..3368c6a 100644
--- a/lisp/org-table.el
+++ b/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