fix hover comment find

This commit is contained in:
light-ly 2024-11-07 11:12:18 +08:00
parent 4b0e5f2d63
commit 3a4bd0c7e4

View File

@ -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("/*") {