aboutsummaryrefslogtreecommitdiff
path: root/test/functional/terminal/buffer_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2023-03-17 01:12:33 +0100
committerJustin M. Keyes <justinkz@gmail.com>2023-03-20 13:40:38 +0100
commita40eb7cc991eb4f8b89f467e8e42563868efa76b (patch)
tree8e6da1b0500ea0b11a97c1a0472204bdf4d4fc16 /test/functional/terminal/buffer_spec.lua
parenta715e6f87eede36775d0921b3537c7c57a82890a (diff)
downloadrneovim-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.lua2
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([[