|
|
@ -119,12 +119,7 @@ pub fn breakpoints<'doc>(
|
|
|
|
Box::new(move |line: usize, _selected: bool, out: &mut String| {
|
|
|
|
Box::new(move |line: usize, _selected: bool, out: &mut String| {
|
|
|
|
let breakpoint = breakpoints
|
|
|
|
let breakpoint = breakpoints
|
|
|
|
.iter()
|
|
|
|
.iter()
|
|
|
|
.find(|breakpoint| breakpoint.line == line);
|
|
|
|
.find(|breakpoint| breakpoint.line == line)?;
|
|
|
|
|
|
|
|
|
|
|
|
let breakpoint = match breakpoint {
|
|
|
|
|
|
|
|
Some(b) => b,
|
|
|
|
|
|
|
|
None => return None,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let mut style = if breakpoint.condition.is_some() && breakpoint.log_message.is_some() {
|
|
|
|
let mut style = if breakpoint.condition.is_some() && breakpoint.log_message.is_some() {
|
|
|
|
error.add_modifier(Modifier::UNDERLINED)
|
|
|
|
error.add_modifier(Modifier::UNDERLINED)
|
|
|
|