A simple CPU rendered GUI IDE experience.
Diffstat (limited to 'src/commands.rs')
| -rw-r--r-- | src/commands.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/commands.rs b/src/commands.rs index 64a382c..edcf6d6 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -252,9 +252,14 @@ impl Editor { .flat_map(|(f, x)| { x.text.bookmarks.iter().zip(repeat(f)) }) - .map(|(b, path)| GoTo { - path: path.clone().into(), - at: At::P(b.position), + .map(|(b, path)| { + ( + GoTo { + path: path.clone().into(), + at: At::P(b.position), + }, + Some(b.text.clone()), + ) }) .collect::<Vec<_>>(); self.state = crate::edi::st::State::GoToL(GoToList { |