diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-05-20 22:33:19 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-05-20 22:33:19 +0200 |
commit | 7cc01c704c86f45854c29cb8427ed3b3029b4188 (patch) | |
tree | 77210b9f4ae69a023e65d9e5e4a3caf8951a6c1d /test/helpers.lua | |
parent | b9ba1295b466a440600b36a717c701bfcea53dbc (diff) | |
parent | 6feb9cb09d243eb811e301b39dbfbba5863617be (diff) | |
download | rneovim-7cc01c704c86f45854c29cb8427ed3b3029b4188.tar.gz rneovim-7cc01c704c86f45854c29cb8427ed3b3029b4188.tar.bz2 rneovim-7cc01c704c86f45854c29cb8427ed3b3029b4188.zip |
Merge #9709 'fileio: use os_copy to create backups'
ref #8288
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) |