diff options
Diffstat (limited to 'test/helpers.lua')
-rw-r--r-- | test/helpers.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/helpers.lua b/test/helpers.lua index 3311f3ef97..2a6285e685 100644 --- a/test/helpers.lua +++ b/test/helpers.lua @@ -697,6 +697,10 @@ 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, @@ -736,6 +740,7 @@ local module = { updated = updated, which = which, write_file = write_file, + trim = trim, } module = shared.tbl_extend('error', module, Paths, shared) |