mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 22:21:15 -03:00
Implement new newline-escaping behavior. Backslashes at the end of lines now essentially delete the newline, within normal text or double quotes. Backslashes are retained within single quotes.
Fixes https://github.com/fish-shell/fish-shell/issues/347 Fixes https://github.com/fish-shell/fish-shell/issues/52
This commit is contained in:
@@ -255,14 +255,6 @@ static void read_string(tokenizer_t *tok)
|
||||
tok->buff--;
|
||||
do_loop = 0;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
else if (*tok->buff == L'\n' && mode == mode_regular_text)
|
||||
{
|
||||
tok->buff--;
|
||||
do_loop = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
tok->buff++;
|
||||
|
||||
Reference in New Issue
Block a user