瀏覽代碼

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 6 年之前
父節點
當前提交
ae497f365e
共有 1 個文件被更改,包括 1 次插入1 次删除
  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