From a8d9f3331ee4da11ae42fff67eb0450534a932a5 Mon Sep 17 00:00:00 2001 From: Yi Ming Date: Sun, 6 Jul 2025 22:30:04 +0800 Subject: [PATCH] test(lsp): remove the deprecated `feed_command` --- test/functional/plugin/lsp/semantic_tokens_spec.lua | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/test/functional/plugin/lsp/semantic_tokens_spec.lua b/test/functional/plugin/lsp/semantic_tokens_spec.lua index 4baedb3ece..ee8db0215c 100644 --- a/test/functional/plugin/lsp/semantic_tokens_spec.lua +++ b/test/functional/plugin/lsp/semantic_tokens_spec.lua @@ -8,7 +8,6 @@ local dedent = t.dedent local eq = t.eq local exec_lua = n.exec_lua local feed = n.feed -local feed_command = n.feed_command local insert = n.insert local matches = t.matches local api = n.api @@ -475,8 +474,8 @@ describe('semantic token highlighting', function() | ]], } - feed_command('%s/int x/int x()/') - feed_command('noh') + feed(':%s/int x/int x()/') + feed(':noh') screen:expect { grid = [[ #include | @@ -720,8 +719,8 @@ describe('semantic token highlighting', function() | ]], } - feed_command('%s/int x/int x()/') - feed_command('noh') + feed(':%s/int x/int x()/') + feed(':noh') -- the highlights don't change because our fake server sent the exact -- same result for the same method (the full request). "x" would have