diff options
author | dundargoc <gocdundar@gmail.com> | 2023-12-13 14:04:24 +0100 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-12-30 17:40:53 +0100 |
commit | d51b6157473c4830313b566116aa3ad38dc97412 (patch) | |
tree | 28092346ddec03f9cb7d924313c991ca2e1077d6 /test/functional | |
parent | bf0be0f63e7142675f1376781c128116d12c520d (diff) | |
download | rneovim-d51b6157473c4830313b566116aa3ad38dc97412.tar.gz rneovim-d51b6157473c4830313b566116aa3ad38dc97412.tar.bz2 rneovim-d51b6157473c4830313b566116aa3ad38dc97412.zip |
refactor: fix luals warnings
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/helpers.lua | 5 | ||||
-rw-r--r-- | test/functional/ui/screen.lua | 1 |
2 files changed, 2 insertions, 4 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua index 2e1f196226..a852e8cc08 100644 --- a/test/functional/helpers.lua +++ b/test/functional/helpers.lua @@ -65,10 +65,7 @@ if os.getenv('VALGRIND') then table.insert(prepend_argv, '--vgdb-error=0') end elseif os.getenv('GDB') then - local gdbserver_port = '7777' - if os.getenv('GDBSERVER_PORT') then - gdbserver_port = os.getenv('GDBSERVER_PORT') - end + local gdbserver_port = os.getenv('GDBSERVER_PORT') or '7777' prepend_argv = {'gdbserver', 'localhost:'..gdbserver_port} end diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua index 99cf4ffb1b..096d8a27fb 100644 --- a/test/functional/ui/screen.lua +++ b/test/functional/ui/screen.lua @@ -1593,6 +1593,7 @@ function Screen:_pprint_attrs(attrs, cterm) return table.concat(items, ", ") end +---@diagnostic disable-next-line: unused-local, unused-function local function backward_find_meaningful(tbl, from) -- luacheck: no unused for i = from or #tbl, 1, -1 do if tbl[i] ~= ' ' then |