Mercurial > vim
comparison src/testdir/test_number.vim @ 24950:18a00b2b9c27 v8.2.3012
patch 8.2.3012: when 'rightleft' is set the line number is drawn reversed
Commit: https://github.com/vim/vim/commit/29f0dc3689eafcf7888e06d57d1cf79e62c5c148
Author: Christian Brabandt <cb@256bit.org>
Date: Wed Jun 16 19:28:34 2021 +0200
patch 8.2.3012: when 'rightleft' is set the line number is drawn reversed
Problem: When 'rightleft' is set the line number is sometimes drawn
reversed.
Solution: Adjust how space is handled. (Christian Brabandt, closes #8389,
closes #8391)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 16 Jun 2021 19:30:05 +0200 |
parents | 08940efa6b4e |
children | b46214b82d6e |
comparison
equal
deleted
inserted
replaced
24949:0b6693288329 | 24950:18a00b2b9c27 |
---|---|
296 " clean up | 296 " clean up |
297 call StopVimInTerminal(buf) | 297 call StopVimInTerminal(buf) |
298 call delete('XTest_relnr') | 298 call delete('XTest_relnr') |
299 endfunc | 299 endfunc |
300 | 300 |
301 " Test for displaying line numbers with 'rightleft' | |
302 func Test_number_rightleft() | |
303 CheckFeature rightleft | |
304 new | |
305 setlocal number | |
306 setlocal rightleft | |
307 call setline(1, range(1, 1000)) | |
308 normal! 9Gzt | |
309 redraw! | |
310 call assert_match('^\s\+9 9$', Screenline(1)) | |
311 normal! 10Gzt | |
312 redraw! | |
313 call assert_match('^\s\+01 10$', Screenline(1)) | |
314 normal! 100Gzt | |
315 redraw! | |
316 call assert_match('^\s\+001 100$', Screenline(1)) | |
317 normal! 1000Gzt | |
318 redraw! | |
319 call assert_match('^\s\+0001 1000$', Screenline(1)) | |
320 bw! | |
321 endfunc | |
322 | |
301 " vim: shiftwidth=2 sts=2 expandtab | 323 " vim: shiftwidth=2 sts=2 expandtab |