diff options
author | Pascal Kuthe | 2023-03-02 18:08:47 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2023-03-09 04:01:02 +0000 |
commit | 4300a3ad058ea383a59a0a90f31a597eb264a7d4 (patch) | |
tree | ce0814033daec73c8e6839b72d05ba2e06047b2b /helix-term/src/commands.rs | |
parent | bc23e548050570d297f263c5f0204af1d2210830 (diff) |
create savepoint before requesting completion
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r-- | helix-term/src/commands.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index e09a1c5b..55ca875d 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -4181,6 +4181,7 @@ pub fn completion(cx: &mut Context) { iter.reverse(); let offset = iter.take_while(|ch| chars::char_is_word(*ch)).count(); let start_offset = cursor.saturating_sub(offset); + doc.savepoint(); cx.callback( future, |