From 78010910625aab8ef41658f35fc1fa68162f6852 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 1 Jun 2023 20:28:16 +0800 Subject: vim-patch:9.0.1596: :registers command does not work in sandbox (#23866) Problem: :registers command does not work in sandbox. Solution: Add flag to the command. (closes vim/vim#12473) https://github.com/vim/vim/commit/eb43b7f0531bd13d15580b5c262a25d6a52a0823 Co-authored-by: Julio B --- test/old/testdir/test_registers.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/old/testdir/test_registers.vim b/test/old/testdir/test_registers.vim index bbf1aa53b5..70dac535b4 100644 --- a/test/old/testdir/test_registers.vim +++ b/test/old/testdir/test_registers.vim @@ -55,8 +55,9 @@ func Test_display_registers() call feedkeys("i\=2*4\n\") call feedkeys(":ls\n", 'xt') - let a = execute('display') - let b = execute('registers') + " these commands work in the sandbox + let a = execute('sandbox display') + let b = execute('sandbox registers') call assert_equal(a, b) call assert_match('^\nType Name Content\n' -- cgit