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 bcbcf5c commit 2d2dc9eCopy full SHA for 2d2dc9e
src/app.rs
@@ -742,7 +742,7 @@ impl App {
742
// populate inline variables with values
743
let mut vars = vec![];
744
if let Some(analysis) = analysis {
745
- for (_, var) in analysis.row(line_no as usize - 1) {
+ for (_, var) in analysis.row((line_no as usize).saturating_sub(1)) {
746
let property = stack.get_property(var.name.as_str());
747
if let Some(property) = property {
748
vars.push(Variable{ var_ref: var, value: property.clone() });
0 commit comments