diff options
author | Jesse Luehrs <doy@tozt.net> | 2022-01-15 16:50:14 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2022-01-15 16:50:14 -0500 |
commit | fb8a568b7e359a36cec80d4e92602d0046a4249f (patch) | |
tree | cb0215e686efc6031cd53ca1341688987762bb2c /src/shell/history/mod.rs | |
parent | 30e37c7f6e3e69fefc709b6be5bcfb3a647909fc (diff) | |
download | nbsh-fb8a568b7e359a36cec80d4e92602d0046a4249f.tar.gz nbsh-fb8a568b7e359a36cec80d4e92602d0046a4249f.zip |
improve bell handling
Diffstat (limited to 'src/shell/history/mod.rs')
-rw-r--r-- | src/shell/history/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shell/history/mod.rs b/src/shell/history/mod.rs index 19223ec..2863cad 100644 --- a/src/shell/history/mod.rs +++ b/src/shell/history/mod.rs @@ -29,7 +29,7 @@ impl History { ) -> anyhow::Result<()> { let mut used_lines = repl_lines; let mut cursor = None; - for (idx, entry) in + for (idx, mut entry) in self.visible(repl_lines, focus, scrolling).await.rev() { let focused = focus.map_or(false, |focus| idx == focus); |