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
|
if captured ~= nil then
|
||||||
lines[i] = captured
|
lines[i] = captured
|
||||||
else
|
else
|
||||||
print('QuickComment: ERROR: Failed to uncomment!')
|
print('QuickComment: ERROR: Failed to uncomment line ' .. i .. '!')
|
||||||
return
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue