branch: externals/colorful-mode
commit c4ce5c820a33d94311ff7bb51d59d04eec669cc4
Author: Elías Gabriel Pérez <[email protected]>
Commit: Elías Gabriel Pérez <[email protected]>

    Fix LaTeX RGB coloring.
    
    * colorful-mode.el (colorful--colorize): Do not divide by `250.0`.
---
 colorful-mode.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/colorful-mode.el b/colorful-mode.el
index e390dbf333..6280912c87 100644
--- a/colorful-mode.el
+++ b/colorful-mode.el
@@ -655,9 +655,9 @@ BEG and END are color match positions."
          (setq color
                (if (string-prefix-p "{R" color)  ; Check if it's RGB (shorted 
as "{R")
                    (format "#%02x%02x%02x"
-                           (/ (string-to-number match-1) 250.0) ; r
-                           (/ (string-to-number match-2) 250.0) ; g
-                           (/ (string-to-number match-3) 250.0)) ; b
+                           (string-to-number match-1) ; r
+                           (string-to-number match-2) ; g
+                           (string-to-number match-3)) ; b
                  (color-rgb-to-hex
                   (string-to-number match-1) ; r
                   (string-to-number match-2) ; g

Reply via email to