diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2023-03-17 01:12:33 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2023-03-20 13:40:38 +0100 |
commit | a40eb7cc991eb4f8b89f467e8e42563868efa76b (patch) | |
tree | 8e6da1b0500ea0b11a97c1a0472204bdf4d4fc16 /test/functional/terminal/buffer_spec.lua | |
parent | a715e6f87eede36775d0921b3537c7c57a82890a (diff) | |
download | rneovim-a40eb7cc991eb4f8b89f467e8e42563868efa76b.tar.gz rneovim-a40eb7cc991eb4f8b89f467e8e42563868efa76b.tar.bz2 rneovim-a40eb7cc991eb4f8b89f467e8e42563868efa76b.zip |
feat(vim.version): more coercion with strict=false
Problem:
"tmux 3.2a" (output from "tmux -V") is not parsed easily.
Solution:
With `strict=false`, discard everything before the first digit.
- rename Semver => Version
- rename vim.version.version() => vim.version._version()
- rename matches() => has()
- remove `opts` from cmp()
Diffstat (limited to 'test/functional/terminal/buffer_spec.lua')
-rw-r--r-- | test/functional/terminal/buffer_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/terminal/buffer_spec.lua b/test/functional/terminal/buffer_spec.lua index 676be151ee..b983ea89d5 100644 --- a/test/functional/terminal/buffer_spec.lua +++ b/test/functional/terminal/buffer_spec.lua @@ -202,7 +202,7 @@ describe(':terminal buffer', function() -- Save the buffer number of the terminal for later testing. local tbuf = eval('bufnr("%")') - local exitcmd = helpers.is_os('win') + local exitcmd = is_os('win') and "['cmd', '/c', 'exit']" or "['sh', '-c', 'exit']" source([[ |