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

Commit

Permalink
Fix potential hover infinite loop
Browse files Browse the repository at this point in the history
extract_docs continue clause could cause endless looping if moving up & 
top line meta
  • Loading branch information
alexheretic authored and pietroalbini committed Dec 17, 2018
1 parent e6e3694 commit b379ef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/actions/hover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ pub fn extract_docs(
};
}

if in_meta {
if !hit_top && in_meta {
// Ignore milti-line attributes
trace!(
"extract_docs: ignoring multi-line attribute, next_row: {:?}, up: {}, in_meta: {}",
Expand Down

0 comments on commit b379ef7

Please sign in to comment.