aboutsummaryrefslogtreecommitdiff
path: root/test/functional/plugin/pack_spec.lua
diff options
context:
space:
mode:
authorEvgeni Chasnovski <evgeni.chasnovski@gmail.com>2025-11-14 12:07:03 +0200
committerEvgeni Chasnovski <evgeni.chasnovski@gmail.com>2025-11-17 12:47:29 +0200
commitf492f62c3d5fbceda60fc3a481ee1b51c60f71bb (patch)
treec5e0fc8b52e4f633906c7afbb902af37b7a903e3 /test/functional/plugin/pack_spec.lua
parentb151aa761f09487046e8a201409672bba0ff7ae2 (diff)
downloadrneovim-f492f62c3d5fbceda60fc3a481ee1b51c60f71bb.tar.gz
rneovim-f492f62c3d5fbceda60fc3a481ee1b51c60f71bb.tar.bz2
rneovim-f492f62c3d5fbceda60fc3a481ee1b51c60f71bb.zip
fix(pack): rename confirmation buffer to again use `nvim-pack://` scheme
Problem: `nvim://` scheme feels more like a generalized interface that may be requested externally, and it acts like CLI args (roughly). This is how `vscode://` works. Anything that behaves like an "app" or a "protocol" deserves its own scheme. For such Nvim-owned things they will be called `nvim-xx://`. Solution: Use `nvim-pack://confirm#<bufnr>` template for confirmation buffer name instead of `nvim://pack-confirm#<bufnr>`.
Diffstat (limited to 'test/functional/plugin/pack_spec.lua')
-rw-r--r--test/functional/plugin/pack_spec.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/plugin/pack_spec.lua b/test/functional/plugin/pack_spec.lua
index e65fa2e4ce..0c99ac280f 100644
--- a/test/functional/plugin/pack_spec.lua
+++ b/test/functional/plugin/pack_spec.lua
@@ -1220,7 +1220,7 @@ describe('vim.pack', function()
local confirm_bufnr = api.nvim_get_current_buf()
local confirm_winnr = api.nvim_get_current_win()
local confirm_tabpage = api.nvim_get_current_tabpage()
- eq(api.nvim_buf_get_name(0), 'nvim://pack-confirm#' .. confirm_bufnr)
+ eq(api.nvim_buf_get_name(0), 'nvim-pack://confirm#' .. confirm_bufnr)
-- Adjust lines for a more robust screenshot testing
local fetch_src = repos_src.fetch
@@ -1270,10 +1270,10 @@ describe('vim.pack', function()
short_hashes.fetch_new_prev = git_get_short_hash('main~', 'fetch')
hashes.semver_head = git_get_hash('v0.3.0', 'semver')
- local tab_name = 'n' .. (t.is_os('win') and ':' or '') .. '//pack-confirm#2'
+ local tab_name = 'n' .. (t.is_os('win') and ':' or '') .. '//confirm#2'
local screen_lines = {
- ('{24: [No Name] }{5: %s }{2:%s }{24:X}|'):format(
+ ('{24: [No Name] }{5: %s }{2:%s }{24:X}|'):format(
tab_name,
t.is_os('win') and '' or ' '
),