about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorJack Huey <31162821+jackh726@users.noreply.github.com>2021-05-18 22:36:19 -0400
committerGitHub <noreply@github.com>2021-05-18 22:36:19 -0400
commit6cfcbf7d032bc4d990ac2121730866849602e174 (patch)
treed56ee9b9586b3c711aea1317963f3494832cd97e /library/std/src/sys/unix/stack_overflow.rs
parente113a4f77bc56db8511f663dd0800ed9c9a27135 (diff)
parentd314b065e71c0fa27c7f954d62537f932153f6cc (diff)
downloadrust-6cfcbf7d032bc4d990ac2121730866849602e174.tar.gz
rust-6cfcbf7d032bc4d990ac2121730866849602e174.zip
Rollup merge of #85438 - GuillaumeGomez:fix-escape-handling, r=jsha
Fix escape handling

Currently, when we press Escape while on the search results, nothing is happening, this PR fixes it.

More information: it's because in case the element doesn't exist, `hasClass` will return `null`, which coerces into `false` with the `!` comparison operator. But even if it returned `false`, it would still be an issue because if the element doesn't exist, it means it's hidden so in this case it's just as good, hence the additional check I added.

r? ``@jsha``
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions