From 7013b1762dd116c1927856fcf458d760f701e82d Mon Sep 17 00:00:00 2001 From: Jaromir Obr Date: Tue, 29 Mar 2022 21:05:10 +0200 Subject: [PATCH] Fixed check if file type supports multilined comments --- src/row.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/row.rs b/src/row.rs index 0564d13..5a31442 100644 --- a/src/row.rs +++ b/src/row.rs @@ -328,7 +328,7 @@ impl Row { c: char, chars: &[char], ) -> bool { - if opts.comments() && c == '/' && *index < chars.len() { + if opts.multiline_comments() && c == '/' && *index < chars.len() { if let Some(next_char) = chars.get(index.saturating_add(1)) { if *next_char == '*' { let closing_index =