From 63c8eaea6c59753958f0f92575612426ca6cbff8 Mon Sep 17 00:00:00 2001 From: numToStr Date: Sat, 20 Nov 2021 12:34:39 +0530 Subject: [PATCH] fix(css): invalid line comment on empty lines --- lua/Comment/utils.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/Comment/utils.lua b/lua/Comment/utils.lua index a9ae565f..6f3372a8 100644 --- a/lua/Comment/utils.lua +++ b/lua/Comment/utils.lua @@ -230,7 +230,7 @@ end ---@return string string Commented string function U.comment_str(ln, lcs, rcs, padding, min_indent) if U.is_empty(ln) then - return (min_indent or '') .. (lcs or rcs) + return (min_indent or '') .. ((lcs or '') .. (rcs or '')) end local indent, chars = ln:match('^(%s*)(.*)')