ソースを参照

org-table: remove a now useless hack

* lisp/org-table.el (org-table-align): remove now useless hack.
Nicolas Goaziou 14 年 前
コミット
a968b8c76f
1 ファイル変更0 行追加10 行削除
  1. 0 10
      lisp/org-table.el

+ 0 - 10
lisp/org-table.el

@@ -815,16 +815,6 @@ When nil, simply write \"#ERROR\" in corrupted fields.")
 			      (append (pop fields) emptystrings))
 		   hfmt))
 	       lines ""))
-    (if (equal (char-before) ?\n)
-	;; This hack is for org-indent, to force redisplay of the
-	;; line prefix of the first line. Apparently the redisplay
-	;; is tied to the newline, which is, I think, a bug.
-	;; To force this redisplay, we remove and re-insert the
-	;; newline, so that the redisplay engine thinks it belongs
-	;; to the changed text.
-	(progn
-	  (backward-delete-char 1)
-	  (insert "\n")))
     (move-marker org-table-aligned-begin-marker (point))
     (insert new)
     ;; Replace the old one