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/unit/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/unit/helpers.lua')
-rw-r--r-- | test/unit/helpers.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/unit/helpers.lua b/test/unit/helpers.lua index e634b7296e..b5d3dd9f47 100644 --- a/test/unit/helpers.lua +++ b/test/unit/helpers.lua @@ -15,6 +15,7 @@ local dedent = global_helpers.dedent local neq = global_helpers.neq local map = global_helpers.map local eq = global_helpers.eq +local trim = global_helpers.trim -- C constants. local NULL = ffi.cast('void*', 0) @@ -119,10 +120,6 @@ local deinit = only_separate(function() end end) -local function trim(s) - return s:match('^%s*(.*%S)') or '' -end - -- a Set that keeps around the lines we've already seen local cdefs_init = Set:new() local cdefs_mod = nil |