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