Browse Source

Merge branch 'maint'

Nicolas Goaziou 8 years ago
parent
commit
5b5f9a874c
1 changed files with 1 additions and 4 deletions
  1. 1 4
      lisp/org-table.el

+ 1 - 4
lisp/org-table.el

@@ -961,10 +961,7 @@ Optional argument NEW may specify text to replace the current field content."
 	    (progn
 	      (setq s (match-string 1)
 		    o (match-string 0)
-		    l (max 1
-			   (- (org-string-width
-			       (buffer-substring-no-properties
-				(match-end 0) (match-beginning 0))) 3))
+		    l (max 1 (- (org-string-width o) 3))
 		    e (not (= (match-beginning 2) (match-end 2))))
 	      (setq f (format (if num " %%%ds %s" " %%-%ds %s")
 			      l (if e "|" (setq org-table-may-need-update t) ""))