mc/4258-fish-subshell-prompt.patch

16 lines
549 B
Diff
Raw Permalink Normal View History

---
src/subshell/common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/src/subshell/common.c
+++ b/src/subshell/common.c
@@ -715,7 +715,7 @@ parse_subshell_prompt_string (const char
/* Extract the prompt from the shell output */
for (i = 0; i < bytes; i++)
- if (buffer[i] == '\n' || buffer[i] == '\r')
+ if (buffer[i] == '\n')
g_string_set_size (subshell_prompt_temp_buffer, 0);
else if (buffer[i] != '\0')
g_string_append_c (subshell_prompt_temp_buffer, buffer[i]);