mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 09:52:31 +00:00
Shell: Restore input offset when failing to parse a redirection
This fixes #3051
This commit is contained in:
parent
b97e42dcaa
commit
d9a1cb440c
Notes:
sideshowbarker
2024-07-19 03:39:14 +09:00
Author: https://github.com/alimpfard
Commit: d9a1cb440c
Pull-request: https://github.com/SerenityOS/serenity/pull/3134
Issue: https://github.com/SerenityOS/serenity/issues/3051
1 changed files with 1 additions and 0 deletions
|
@ -524,6 +524,7 @@ RefPtr<AST::Node> Parser::parse_redirection()
|
||||||
return create<AST::ReadWriteRedirection>(pipe_fd, move(path)); // Redirection ReadWrite
|
return create<AST::ReadWriteRedirection>(pipe_fd, move(path)); // Redirection ReadWrite
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
m_offset = rule_start->offset;
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue