瀏覽代碼

Fix deleting a region in a table (part 2)

* lisp/org.el (org-delete-backward-char): Fix deleting a region in
  a table.
Nicolas Goaziou 7 年之前
父節點
當前提交
ab65bc13d6
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lisp/org.el

+ 1 - 0
lisp/org.el

@@ -20243,6 +20243,7 @@ because, in this case the deletion might narrow the column."
     (org-check-before-invisible-edit 'delete-backward)
     (if (and (org-at-table-p)
 	     (eq N 1)
+	     (not (org-region-active-p))
 	     (string-match "|" (buffer-substring (point-at-bol) (point)))
 	     (looking-at ".*?|"))
 	(let ((pos (point))