emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org 180c1c37a9 3/4: ob-comint.el: Fix off-by-one error


From: ELPA Syncer
Subject: [elpa] externals/org 180c1c37a9 3/4: ob-comint.el: Fix off-by-one error in async result
Date: Wed, 22 Mar 2023 15:58:56 -0400 (EDT)

branch: externals/org
commit 180c1c37a9f3a6a955a023223dfe7246f3384aa2
Author: Matthew Trzcinski <matt@excalamus.com>
Commit: Matthew Trzcinski <matt@excalamus.com>

    ob-comint.el: Fix off-by-one error in async result
    
    * ob-comint.el (org-babel-comint-async-filter): Fix region returned
    after async calculation completes so that the trailing prompt ends in
    a space.
    
    Link: 
https://list.orgmode.org/18705dca9b8.f4f7e70c165671.6021704484862511260@excalamus.com/
---
 lisp/ob-comint.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/ob-comint.el b/lisp/ob-comint.el
index 54bf5127e1..86c2bf7a76 100644
--- a/lisp/ob-comint.el
+++ b/lisp/ob-comint.el
@@ -273,7 +273,7 @@ STRING contains the output originally inserted into the 
comint buffer."
                   (res-str-raw
                    (buffer-substring
                     ;; move point to beginning of indicator
-                     (- (match-beginning 0) 1)
+                     (match-beginning 0)
                     ;; find the matching start indicator
                     (cl-loop
                       do (re-search-backward indicator)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]