aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/screen.lua
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro@gmail.com>2016-02-29 13:48:59 +0100
committerMarco Hinz <mh.codebro@gmail.com>2016-02-29 13:48:59 +0100
commit88da85a3cd88838a7779ad27c533e62f890e7b18 (patch)
treea093921af53c72b8c80d57d33c1fa0d6c2fb31e4 /test/functional/ui/screen.lua
parent9c4b34be284faa573a66f5fd68f111634f482f7c (diff)
downloadrneovim-88da85a3cd88838a7779ad27c533e62f890e7b18.tar.gz
rneovim-88da85a3cd88838a7779ad27c533e62f890e7b18.tar.bz2
rneovim-88da85a3cd88838a7779ad27c533e62f890e7b18.zip
Tests: fix according to lualint
Diffstat (limited to 'test/functional/ui/screen.lua')
-rw-r--r--test/functional/ui/screen.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua
index 3f857e25f9..b35e0cde69 100644
--- a/test/functional/ui/screen.lua
+++ b/test/functional/ui/screen.lua
@@ -226,15 +226,16 @@ function Screen:expect(expected, attr_ids, attr_ignore)
for i = 1, self._height do
if expected_rows[i] ~= actual_rows[i] then
local msg_expected_rows = {}
- for i = 1, #expected_rows do msg_expected_rows[i] = expected_rows[i] end
+ for j = 1, #expected_rows do
+ msg_expected_rows[j] = expected_rows[j]
+ end
msg_expected_rows[i] = '*' .. msg_expected_rows[i]
actual_rows[i] = '*' .. actual_rows[i]
- msg = (
+ return (
'Row ' .. tostring(i) .. ' didn\'t match.\n'
.. 'Expected:\n|' .. table.concat(msg_expected_rows, '|\n|') .. '|\n'
.. 'Actual:\n|' .. table.concat(actual_rows, '|\n|') .. '|'
)
- return msg
end
end
end)