Fix the blank line when there are no breakpoints or symbols
This commit is contained in:
parent
a1920fdcfa
commit
2f343b3772
12
src/main.rs
12
src/main.rs
@ -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))
|
||||
}
|
||||
}
|
||||
},
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user