diff --git a/test/functional/legacy/normal_spec.lua b/test/functional/legacy/normal_spec.lua index 576910f9bb..8f1dc67c67 100644 --- a/test/functional/legacy/normal_spec.lua +++ b/test/functional/legacy/normal_spec.lua @@ -147,17 +147,17 @@ describe('normal', function() end) clear({ env = { LANG = 'tr_TR.UTF-8' } }) - screen = Screen.new(75, 5) + screen = Screen.new(40, 5) exec('set ruler') exec('lang tr_TR.UTF-8') exec('put =range(1,40)') exec('5') screen:expect([[ - 3 | - ^4 | - 5 | - 6 | - 40 more lines 5,1 %8 | + 3 | + ^4 | + 5 | + 6 | + 40 more lines 5,1 %8 | ]]) end) end) diff --git a/test/old/testdir/test_normal.vim b/test/old/testdir/test_normal.vim index 5e03819cd1..a56807e320 100644 --- a/test/old/testdir/test_normal.vim +++ b/test/old/testdir/test_normal.vim @@ -4402,6 +4402,9 @@ func Test_pos_percentage_in_turkish_locale() CheckRunVimInTerminal CheckNotMac defer execute(':lang C') + if !filereadable('../po/tr.mo') + throw 'Skipped: tr.mo not built, run make in src/po first' + endif try let dir = expand('$VIMRUNTIME/lang/tr/') @@ -4411,7 +4414,7 @@ func Test_pos_percentage_in_turkish_locale() call mkdir(target, '') call filecopy(tr, target .. 'vim.mo') lang tr_TR.UTF-8 - let buf = RunVimInTerminal('', {'rows': 5}) + let buf = RunVimInTerminal('', {'rows': 5, 'cols': 40}) call term_sendkeys(buf, ":lang tr_TR.UTF-8\") call term_sendkeys(buf, ":put =range(1,40)\") call term_sendkeys(buf, ":5\")