From 999fe9468862e22fa5317585f67f5cb32683fc15 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 1 Mar 2023 08:17:09 +0800 Subject: [PATCH] vim-patch:9.0.1365: dead test code (#22461) Problem: Dead test code. Solution: Remove code that depends on Farsi, which has been removed. (closes vim/vim#12084) https://github.com/vim/vim/commit/f0300fc7b81e63c2584dc3a763dedea4184d17e5 --- src/nvim/testdir/test_startup.vim | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/nvim/testdir/test_startup.vim b/src/nvim/testdir/test_startup.vim index 8216b1a894..da467ea23f 100644 --- a/src/nvim/testdir/test_startup.vim +++ b/src/nvim/testdir/test_startup.vim @@ -386,8 +386,8 @@ func Test_m_M_R() call delete('Xtestout') endfunc -" Test the -A, -F and -H arguments (Arabic, Farsi and Hebrew modes). -func Test_A_F_H_arg() +" Test the -A and -H arguments (Arabic and Hebrew modes). +func Test_A_H_arg() let after =<< trim [CODE] call writefile([&rightleft, &arabic, 0, &hkmap, &keymap], "Xtestout") qall @@ -400,11 +400,6 @@ func Test_A_F_H_arg() call assert_equal(['1', '1', '0', '0', 'arabic'], lines) endif - if has('farsi') && RunVim([], after, '-F') - let lines = readfile('Xtestout') - call assert_equal(['1', '0', '1', '0', '???'], lines) - endif - if has('rightleft') && RunVim([], after, '-H') let lines = readfile('Xtestout') call assert_equal(['1', '0', '0', '0', 'hebrew'], lines)