branch: elpa/bash-completion
commit 35d38fd3dc4d30fb177b9a6b858e2dedfc5b671a
Author: Stephane Zermatten <[email protected]>
Commit: Stephane Zermatten <[email protected]>
Workaround for output containing \r\n instead of \n.
This change filters out any \r that might be output when in
single-process mode.
---
bash-completion.el | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/bash-completion.el b/bash-completion.el
index 802cfa0219..8a492884bd 100644
--- a/bash-completion.el
+++ b/bash-completion.el
@@ -1441,6 +1441,10 @@ and would like bash completion in Emacs to take these
changes into account."
(let ((begin (point-max)))
(goto-char begin)
(insert output)
+ (save-excursion
+ (goto-char (point-min))
+ (while (search-forward "\r" nil 'noerror)
+ (delete-char -1)))
(ansi-color-filter-region begin (point))
"")))