From 621e4e9e4dac3e037936d7e33bdb272f0f58c997 Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Sun, 5 Jul 2020 15:54:00 -0400 Subject: [PATCH] Slight performance improvement --- runtime/plugins/comment/comment.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/plugins/comment/comment.lua b/runtime/plugins/comment/comment.lua index b77066b8..4c3032c6 100644 --- a/runtime/plugins/comment/comment.lua +++ b/runtime/plugins/comment/comment.lua @@ -134,6 +134,7 @@ function toggleCommentSelection(bp, startLine, endLine, commentRegex) for line = startLine, endLine do if not isCommented(bp, line, commentRegex) then allComments = false + break end end