Adam Majer
f1b234770f
archives (bsc#1233006). OBS-URL: https://build.opensuse.org/package/show/Base:System/mc?expand=0&rev=164
16 lines
549 B
Diff
16 lines
549 B
Diff
---
|
|
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]);
|