Skip to content

Commit

Permalink
chore: Try to fix luacheck failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
kylechui committed Aug 11, 2022
1 parent a0aad7f commit a3d82b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/nvim-surround/buffer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ M.get_first_byte = function(pos)
return pos
end
-- See https://en.wikipedia.org/wiki/UTF-8#Encoding
while byte >= 0b10000000 and byte < 0b11000000 do
while (byte >= 0b10000000) and (byte < 0b11000000) do
pos[2] = pos[2] - 1
byte = string.byte(M.get_line(pos[1]):sub(pos[2], pos[2]))
end
Expand Down

0 comments on commit a3d82b8

Please sign in to comment.