Explorar o código

Merge branch 'maint'

Bastien %!s(int64=4) %!d(string=hai) anos
pai
achega
b2f54f9f8e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lisp/org-table.el

+ 1 - 1
lisp/org-table.el

@@ -4460,7 +4460,7 @@ Optional argument NEW may specify text to replace the current field content."
 			  ((not new)
 			   (concat (org-table--align-field field width align)
 				   "|"))
-			  ((<= (org-string-width new) width)
+			  ((and width (<= (org-string-width new) width))
 			   (concat (org-table--align-field new width align)
 				   "|"))
 			  (t