diff --git a/parsing/src/suggestions.rs b/parsing/src/suggestions.rs index dde029f..89202ce 100644 --- a/parsing/src/suggestions.rs +++ b/parsing/src/suggestions.rs @@ -176,8 +176,14 @@ pub fn split_function_chars(chars: &[char]) -> Vec { data.push(buffer); } + if data.len() == 1 { + if data[0].is_empty() { + return Vec::new(); + } + } + data.iter() - .map(|e| e.iter().cloned().collect::()) + .map(|e| e.iter().map(|c| *c).collect::()) .collect::>() }