emacs-framebuffer

Emacs library to show images and documents in console using Linux framebuffer
Log | Files | Refs

commit ac8f9cd9c51821302c7ec7e6a7df32b4513dc99f
parent 462562de59d67680828e53e8de3a046e8efa3a2d
Author: Tomas Hlavaty <tom@logand.com>
Date:   Sun, 24 May 2020 18:05:15 +0200

fix regexp

Diffstat:
Memacs-framebuffer.el | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/emacs-framebuffer.el b/emacs-framebuffer.el @@ -45,7 +45,7 @@ (or (with-temp-buffer (insert-file-contents "/sys/class/graphics/fb0/modes") - (search-forward-regexp "\\([0-9]+\\)+x\\([0-9]+\\)") + (search-forward-regexp "\\([0-9]+\\)x\\([0-9]+\\)") (cons (read (match-string 1)) (read (match-string 2)))) (cons framebuffer-default-width framebuffer-default-height)))) @@ -160,7 +160,7 @@ (?P ;; ppm pnm (case (framebuffer-next-u8 brook) ((?3 ?6) - (search-forward-regexp "^\\([0-9]+\\)+ \\([0-9]+\\)$") + (search-forward-regexp "^\\([0-9]+\\) \\([0-9]+\\)$") (cons (read (match-string 1)) (read (match-string 2)))))) ))))