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:
parent
f52c803c53
commit
521966fe72
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue