aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormortezadadgar <mortezadadgar97@gmail.com>2023-11-11 02:11:10 +0330
committerGitHub <noreply@github.com>2023-11-11 06:41:10 +0800
commitd1b2a5cf5fa583b556457d34a46ce7b940913a66 (patch)
treec88838c4f2721910cf9d583cd5c16aa084a9ced6 /test
parent4e33ef747ca4b26f67c43e73f3105b174e9ef5b6 (diff)
downloadrneovim-d1b2a5cf5fa583b556457d34a46ce7b940913a66.tar.gz
rneovim-d1b2a5cf5fa583b556457d34a46ce7b940913a66.tar.bz2
rneovim-d1b2a5cf5fa583b556457d34a46ce7b940913a66.zip
fix(completion): make sure the buffer name is valid (#25975)
Problem: crash from set complete+=f open a empty buffer C-N Solution: make sure the buffer name is valid. regression from ae4ca4edf89ece433b61e8bf92c412298b58d9ea
Diffstat (limited to 'test')
-rw-r--r--test/functional/editor/completion_spec.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/editor/completion_spec.lua b/test/functional/editor/completion_spec.lua
index cb5e0b0b14..51f30543e3 100644
--- a/test/functional/editor/completion_spec.lua
+++ b/test/functional/editor/completion_spec.lua
@@ -1237,7 +1237,7 @@ describe('completion', function()
bufname = 'C:\\foo\\bar.txt'
hidden = 'C:\\fooA\\.hidden'
end
- command('set complete+=f | edit '.. bufname ..' | edit '..hidden)
+ command('set complete+=f | edit '..bufname..' | edit '..hidden..' | enew')
feed('i<C-n>')
screen:expect{grid=[[