mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
input: Resolve a TODO
This commit is contained in:
parent
035948eb2f
commit
1160bf84ed
1 changed files with 4 additions and 4 deletions
|
@ -922,10 +922,10 @@ impl Inputter {
|
|||
return res;
|
||||
}
|
||||
ReadlineCmd::FuncAnd | ReadlineCmd::FuncOr => {
|
||||
// If previous function has bad status, we want to skip all functions that
|
||||
// follow us.
|
||||
// TODO: this line is too tricky.
|
||||
if (cmd == ReadlineCmd::FuncAnd) != self.function_status {
|
||||
// If previous function has bad status, skip all functions that follow us.
|
||||
if (!self.function_status && cmd == ReadlineCmd::FuncAnd)
|
||||
|| (self.function_status && cmd == ReadlineCmd::FuncOr)
|
||||
{
|
||||
self.drop_leading_readline_events();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue