summaryrefslogtreecommitdiff
path: root/elisp
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2019-02-08 05:30:25 +0000
committerJose Antonio Ortega Ruiz <jao@gnu.org>2019-02-08 05:30:25 +0000
commit0d55c46e2e4131284fadcbf0513f834a633c1da3 (patch)
tree800eee7ba749c55bd00abbb1d69b09f1acf16744 /elisp
parenta70a0c121b8f154c8d9421789bbbe12a4f5ea738 (diff)
downloadgeiser-guile-0d55c46e2e4131284fadcbf0513f834a633c1da3.tar.gz
geiser-guile-0d55c46e2e4131284fadcbf0513f834a633c1da3.tar.bz2
Fix: off-by-one while fontifying REPL's output
Diffstat (limited to 'elisp')
-rw-r--r--elisp/geiser-repl.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/elisp/geiser-repl.el b/elisp/geiser-repl.el
index 3be37b7..61ab1e0 100644
--- a/elisp/geiser-repl.el
+++ b/elisp/geiser-repl.el
@@ -1,6 +1,6 @@
;;; geiser-repl.el --- Geiser's REPL
-;; Copyright (C) 2009, 2010, 2011, 2012, 2013, 2015, 2016, 2018 Jose Antonio Ortega Ruiz
+;; Copyright (C) 2009, 2010, 2011, 2012, 2013, 2015, 2016, 2018, 2019 Jose Antonio Ortega Ruiz
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the Modified BSD License. You should
@@ -395,7 +395,6 @@ module command as a string")
font-lock-multiline t
font-lock-face geiser-font-lock-repl-output)))
-
(defun geiser-repl--narrow-to-prompt ()
"Narrow to active prompt region and return t, otherwise returns nil."
(let* ((proc (get-buffer-process (current-buffer)))
@@ -451,7 +450,7 @@ module command as a string")
(add-text-properties (1+ geiser-repl--last-output-start)
geiser-repl--last-output-end
`(read-only ,geiser-repl-read-only-output-p))
- (geiser-repl--fontify-output-region (1+ geiser-repl--last-output-start)
+ (geiser-repl--fontify-output-region geiser-repl--last-output-start
geiser-repl--last-output-end)
(font-lock-ensure geiser-repl--last-output-start
geiser-repl--last-output-end))))