From 25b9137915862920b5b93f2eb2ab64a4356dc9f6 Mon Sep 17 00:00:00 2001 From: Jaromir Obr Date: Wed, 30 Mar 2022 21:12:10 +0200 Subject: [PATCH] Fixed highligting during scrolling when comment row ends with */ --- src/row.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/row.rs b/src/row.rs index 0564d13..be985d7 100644 --- a/src/row.rs +++ b/src/row.rs @@ -412,14 +412,6 @@ impl Row { ) -> bool { let chars: Vec = self.string.chars().collect(); if self.is_highlighted && word.is_none() { - if let Some(hl_type) = self.highlighting.last() { - if *hl_type == highlighting::Type::MultilineComment - && self.string.len() > 1 - && self.string[self.string.len() - 2..] == *"*/" - { - return true; - } - } return false; } self.highlighting = Vec::new();