aboutsummaryrefslogtreecommitdiff
path: root/test/helpers.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-05-20 23:06:14 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-05-20 23:46:56 +0200
commit5b04a4fa09e0ee09678aec23b1d0233e7c25e3e6 (patch)
tree04f75eccd24174f4723274a7505874d822363b9a /test/helpers.lua
parent646c3423dd580aebb677d9a3fe0ed26f74f97e31 (diff)
downloadrneovim-5b04a4fa09e0ee09678aec23b1d0233e7c25e3e6.tar.gz
rneovim-5b04a4fa09e0ee09678aec23b1d0233e7c25e3e6.tar.bz2
rneovim-5b04a4fa09e0ee09678aec23b1d0233e7c25e3e6.zip
lua/shared: share trim() impl
Diffstat (limited to 'test/helpers.lua')
-rw-r--r--test/helpers.lua5
1 files changed, 0 insertions, 5 deletions
diff --git a/test/helpers.lua b/test/helpers.lua
index 2a6285e685..3311f3ef97 100644
--- a/test/helpers.lua
+++ b/test/helpers.lua
@@ -697,10 +697,6 @@ local function read_nvim_log()
return log
end
-local function trim(s)
- return s:match('^%s*(.*%S)') or ''
-end
-
local module = {
REMOVE_THIS = REMOVE_THIS,
argss_to_cmd = argss_to_cmd,
@@ -740,7 +736,6 @@ local module = {
updated = updated,
which = which,
write_file = write_file,
- trim = trim,
}
module = shared.tbl_extend('error', module, Paths, shared)