A simple CPU rendered GUI IDE experience.
Diffstat (limited to 'src/lsp.rs')
-rw-r--r--src/lsp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lsp.rs b/src/lsp.rs
index bfae4e9..1bf130b 100644
--- a/src/lsp.rs
+++ b/src/lsp.rs
@@ -339,7 +339,7 @@ impl Client {
text_document: f.tid(),
range: t.to_l_range(lower::saturating::math!{
t.rope.try_line_to_char(t.vo-t.r).unwrap_or(0)..t.rope.try_line_to_char(t.vo + t.r + t.r).unwrap_or(t.rope.len_chars())
- })
+ }).unwrap()
}).unwrap().0.map(|x| x.map(Option::unwrap_or_default))
// async {
// if let Ok(z) = z.await {