mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-03 06:15:29 +00:00
Shell: Restore input offset when failing to parse a redirection
This fixes #3051
This commit is contained in:
committed by
Andreas Kling
parent
b97e42dcaa
commit
d9a1cb440c
@@ -524,6 +524,7 @@ RefPtr<AST::Node> Parser::parse_redirection()
|
||||
return create<AST::ReadWriteRedirection>(pipe_fd, move(path)); // Redirection ReadWrite
|
||||
}
|
||||
default:
|
||||
m_offset = rule_start->offset;
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user