From db6528afdf129e7a37f0207f136d9bbbcf8ec4da Mon Sep 17 00:00:00 2001 From: Alex Butler Date: Thu, 6 Dec 2018 23:45:41 +0000 Subject: [PATCH] Fix potential hover infinite loop extract_docs continue clause could cause endless looping if moving up & top line meta --- src/actions/hover.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actions/hover.rs b/src/actions/hover.rs index f2a5ea8990d..24d9504e34f 100644 --- a/src/actions/hover.rs +++ b/src/actions/hover.rs @@ -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: {}",