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

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

[nongnu] elpa/bash-completion fa49dbb382 209/313: Improve status code re


From: ELPA Syncer
Subject: [nongnu] elpa/bash-completion fa49dbb382 209/313: Improve status code retrieval
Date: Sat, 3 Dec 2022 10:59:31 -0500 (EST)

branch: elpa/bash-completion
commit fa49dbb38279187c787025e5a2647f535f056fb7
Author: montag451 <montag451@laposte.net>
Commit: montag451 <montag451@laposte.net>

    Improve status code retrieval
---
 bash-completion.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/bash-completion.el b/bash-completion.el
index 2b46b63cd2..99603530cd 100644
--- a/bash-completion.el
+++ b/bash-completion.el
@@ -1376,7 +1376,10 @@ Return the status code of the command, as a number."
         (search-backward "\v"))
       (let ((status-code (string-to-number
                           (buffer-substring-no-properties
-                           (1+ (point)) (line-end-position)))))
+                           (1+ (point))
+                           (if bash-completion-use-separate-processes
+                               (1- (line-end-position))
+                             (line-end-position))))))
         (delete-region (point) (point-max))
         (if (string=
              "124"



reply via email to

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