Pārlūkot izejas kodu

org.el: Fix missing arg in string-match-p call

* lisp/org.el (org-display-inline-image--width): `string-match-p'
requires two arguments, but the second one was missing.
Matt Huszagh 3 gadi atpakaļ
vecāks
revīzija
912cf21494
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      lisp/org.el

+ 1 - 1
lisp/org.el

@@ -16867,7 +16867,7 @@ buffer boundaries with possible narrowing."
              ((string= attr-width "t") nil)
              ;; Fallback to `org-image-actual-width' if no interprable width is given.
              ((or (null attr-width)
-                  (string-match-p "\\`[^0-9]"))
+                  (string-match-p "\\`[^0-9]" attr-width))
               (car org-image-actual-width))
              ;; Convert numeric widths to numbers, converting percentages.
              ((string-match-p "\\`[0-9.]+%" attr-width)