Fix the blank line when there are no breakpoints or symbols

This commit is contained in:
pjht 2022-10-19 08:18:24 -05:00
parent a1920fdcfa
commit 2f343b3772

View File

@ -465,7 +465,11 @@ fn main() -> Result<(), ReplError> {
}
}
out.pop(); // Remove trailing newline
Ok(Some(out))
if out.is_empty() {
Ok(Some("No symbols".to_string()))
} else {
Ok(Some(out))
}
}
},
)
@ -523,7 +527,11 @@ fn main() -> Result<(), ReplError> {
}
}
out.pop();
Ok(Some(out))
if out.is_empty() {
Ok(Some("No breakpoints".to_string()))
} else {
Ok(Some(out))
}
}
},
)