diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-05-21 01:06:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-21 01:06:31 +0200 |
commit | ca1ce590257c35426aeeaac349317d2cb163cd2e (patch) | |
tree | 04f75eccd24174f4723274a7505874d822363b9a /test/unit/helpers.lua | |
parent | b9ba1295b466a440600b36a717c701bfcea53dbc (diff) | |
parent | 5b04a4fa09e0ee09678aec23b1d0233e7c25e3e6 (diff) | |
download | rneovim-ca1ce590257c35426aeeaac349317d2cb163cd2e.tar.gz rneovim-ca1ce590257c35426aeeaac349317d2cb163cd2e.tar.bz2 rneovim-ca1ce590257c35426aeeaac349317d2cb163cd2e.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 |