diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2019-02-08 05:30:25 +0000 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2019-02-08 05:30:25 +0000 |
commit | 03ded92c39303e94377ea15eb75092d66fd8da1a (patch) | |
tree | 11997b87b6ef802fddf35ce5407610fd120e9bd5 /elisp/geiser-repl.el | |
parent | 420bb7ef53418717b3cac97ade9663f03009e6a9 (diff) | |
download | geiser-03ded92c39303e94377ea15eb75092d66fd8da1a.tar.gz geiser-03ded92c39303e94377ea15eb75092d66fd8da1a.tar.bz2 |
Fix: off-by-one while fontifying REPL's output
Diffstat (limited to 'elisp/geiser-repl.el')
-rw-r--r-- | elisp/geiser-repl.el | 5 |
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)))) |