mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 07:43:18 +08:00
read_unquoted_escape: remove dead loop condition
This was recently converted to a while-loop. However, we only loop in a specific case when (by hitting "continue") so a loop condition is not necessary. No functional change.
This commit is contained in:
parent
e7a7a58030
commit
5868b3c380
|
@ -1152,7 +1152,7 @@ maybe_t<size_t> read_unquoted_escape(const wchar_t *input, wcstring *result, boo
|
|||
|
||||
// For multibyte \X sequences.
|
||||
std::string byte_buff;
|
||||
while (!errored) {
|
||||
while (true) {
|
||||
const wchar_t c = input[in_pos++];
|
||||
switch (c) {
|
||||
// A null character after a backslash is an error.
|
||||
|
|
Loading…
Reference in New Issue
Block a user