Adam Majer
926281aa2b
- Add 4258-fish-subshell-prompt.patch fixing https://midnight-commander.org/ticket/4258 stopping fish from sending \r while printing prompt and mc erases prompt buffer. - Add mc.fish, which the fish equivalent of /usr/share/mc/mc-wrapper.sh OBS-URL: https://build.opensuse.org/package/show/Base:System/mc?expand=0&rev=142
16 lines
555 B
Diff
16 lines
555 B
Diff
---
|
|
src/subshell/common.c | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
--- a/src/subshell/common.c
|
|
+++ b/src/subshell/common.c
|
|
@@ -713,7 +713,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]);
|