A simple CPU rendered GUI IDE experience.
Diffstat (limited to 'src/text.rs')
| -rw-r--r-- | src/text.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/text.rs b/src/text.rs index 2a06da0..1f503bc 100644 --- a/src/text.rs +++ b/src/text.rs @@ -324,7 +324,7 @@ impl TextArea { crate::sni::Snippet::parse(&x.new_text, begin) .ok_or(anyhow!("failed to parse snippet"))?; self.rope.try_insert(begin, &tex)?; - self.cursor = sni.next(); + self.cursor = sni.next().r().end; Ok(()) } pub fn cursor(&self) -> (usize, usize) { |