|
|
@ -109,10 +109,12 @@ pub fn breakpoints<'doc>(
|
|
|
|
let error = theme.get("error");
|
|
|
|
let error = theme.get("error");
|
|
|
|
let info = theme.get("info");
|
|
|
|
let info = theme.get("info");
|
|
|
|
|
|
|
|
|
|
|
|
let breakpoints = doc
|
|
|
|
let breakpoints = doc.path().and_then(|path| editor.breakpoints.get(path));
|
|
|
|
.path()
|
|
|
|
|
|
|
|
.and_then(|path| editor.breakpoints.get(path))
|
|
|
|
let breakpoints = match breakpoints {
|
|
|
|
.unwrap();
|
|
|
|
Some(breakpoints) => breakpoints,
|
|
|
|
|
|
|
|
None => return Box::new(move |_, _, _| None),
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|