Minor fix handling error while uncommenting line

Instead of returning, allow the loop to continue so that a single line's
failure doesn't prevent other lines toggling comment state.
This commit is contained in:
Stephen Seo 2022-11-03 16:14:05 +09:00
parent f52c803c53
commit 521966fe72
1 changed files with 1 additions and 2 deletions

View File

@ -83,8 +83,7 @@ vim.g.quickcomment_togglecommentlines = function (line_start, line_end)
if captured ~= nil then
lines[i] = captured
else
print('QuickComment: ERROR: Failed to uncomment!')
return
print('QuickComment: ERROR: Failed to uncomment line ' .. i .. '!')
end
end
end