fix(Layer): correctly prevent error from printing

pull/17/head
Iron-E 2 years ago
parent 84eaaae9ab
commit 944eb0c262
No known key found for this signature in database
GPG Key ID: 19B71B7B7B021D22

@ -120,7 +120,7 @@ function Layer:unmap(buffer, mode, lhs)
end
end)
if not no_errors and err ~= 'E31: No such mapping' then
if not (no_errors or err:match 'E31: No such mapping') then
print(err)
end
end

Loading…
Cancel
Save