Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit b379ef7

Browse files
alexhereticpietroalbini
authored andcommitted
Fix potential hover infinite loop
extract_docs continue clause could cause endless looping if moving up & top line meta
1 parent e6e3694 commit b379ef7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/actions/hover.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ pub fn extract_docs(
142142
};
143143
}
144144

145-
if in_meta {
145+
if !hit_top && in_meta {
146146
// Ignore milti-line attributes
147147
trace!(
148148
"extract_docs: ignoring multi-line attribute, next_row: {:?}, up: {}, in_meta: {}",

0 commit comments

Comments
 (0)