We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd05b51 commit 45f9691Copy full SHA for 45f9691
CHANGELOG.md
@@ -10,6 +10,7 @@ main
10
- Fix position of closing braces in context view
11
- Show historic inline values
12
- Do not show "undefined" variables
13
+- Ensure context depth is in range of 1-9
14
15
0.1.1
16
-----
src/app.rs
@@ -475,8 +475,8 @@ impl App {
475
self.exec_continuation(AppEvent::Run).await;
476
}
477
AppEvent::ContextDepth(inc) => {
478
- let depth = self.context_depth;
479
- self.context_depth = depth.wrapping_add(inc as u16);
+ let depth = self.context_depth.clone();
+ self.context_depth = depth.wrapping_add(inc as u16).max(1).min(9);
480
self.client
481
.lock()
482
.await
0 commit comments