From 629bb38be6c2c2436673392c019d48a40b5ce970 Mon Sep 17 00:00:00 2001 From: Matt Paras Date: Sun, 15 Jun 2025 17:24:21 -0700 Subject: [PATCH] adjust inlay hint api to remove just based on character index and not the completion as well --- helix-term/src/commands/engine/steel.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/helix-term/src/commands/engine/steel.rs b/helix-term/src/commands/engine/steel.rs index 8fe725d63..d0d737b13 100644 --- a/helix-term/src/commands/engine/steel.rs +++ b/helix-term/src/commands/engine/steel.rs @@ -5103,8 +5103,8 @@ pub fn add_inlay_hint(cx: &mut Context, char_index: usize, completion: SteelStri } // "remove-inlay-hint", -pub fn remove_inlay_hint(cx: &mut Context, char_index: usize, completion: SteelString) -> bool { - let text = completion.to_string(); +pub fn remove_inlay_hint(cx: &mut Context, char_index: usize, _completion: SteelString) -> bool { + // let text = completion.to_string(); let view_id = cx.editor.tree.focus; if !cx.editor.tree.contains(view_id) { return false; @@ -5122,7 +5122,7 @@ pub fn remove_inlay_hint(cx: &mut Context, char_index: usize, completion: SteelS let mut new_inlay_hints = inlay_hints.clone(); new_inlay_hints .other_inlay_hints - .retain(|x| x.char_idx != char_index && x.text != text); + .retain(|x| x.char_idx != char_index); doc.set_inlay_hints(view_id, new_inlay_hints); true }