Fix the blank line when there are no breakpoints or symbols
This commit is contained in:
parent
a1920fdcfa
commit
2f343b3772
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user