From 3a4bd0c7e4a6d9cba15b80c1a924f69d5f1b9b90 Mon Sep 17 00:00:00 2001 From: light-ly <1505507717@qq.com> Date: Thu, 7 Nov 2024 11:12:18 +0800 Subject: [PATCH] fix hover comment find --- src/hover/sv.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hover/sv.rs b/src/hover/sv.rs index 4a3208c..d43937a 100644 --- a/src/hover/sv.rs +++ b/src/hover/sv.rs @@ -98,7 +98,7 @@ fn make_hover_with_comment(doc: &Rope, line: usize, language_id: &str, exclude_c let currentr = current.clone().trim_end().to_owned(); if currentl.starts_with("/*") && currentr.ends_with("*/") { valid = true; - } else if currentr.ends_with("*/") { + } else if currentr.ends_with("*/") && line_idx != line - 1 { multiline = true; valid = true; } else if currentl.starts_with("/*") {