mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +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;
|
return res;
|
||||||
}
|
}
|
||||||
ReadlineCmd::FuncAnd | ReadlineCmd::FuncOr => {
|
ReadlineCmd::FuncAnd | ReadlineCmd::FuncOr => {
|
||||||
// If previous function has bad status, we want to skip all functions that
|
// If previous function has bad status, skip all functions that follow us.
|
||||||
// follow us.
|
if (!self.function_status && cmd == ReadlineCmd::FuncAnd)
|
||||||
// TODO: this line is too tricky.
|
|| (self.function_status && cmd == ReadlineCmd::FuncOr)
|
||||||
if (cmd == ReadlineCmd::FuncAnd) != self.function_status {
|
{
|
||||||
self.drop_leading_readline_events();
|
self.drop_leading_readline_events();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue