Mercurial > vim
view src/testdir/test_largefile.vim @ 34641:b41af4b613da v9.1.0206
patch 9.1.0206: unused display_text_first boolean var in win_line()
Commit: https://github.com/vim/vim/commit/c8b47f26d8ae0db2d65a1cd34d7e34a2c7a6b462
Author: Dylan Thacker-Smith <dylan.ah.smith@gmail.com>
Date: Tue Mar 26 18:05:01 2024 +0100
patch 9.1.0206: unused display_text_first boolean var in win_line()
Problem: unused display_text_first boolean var in win_line()
Solution: Remove unused display_text_first boolean variable
(Dylan Thacker-Smith)
The only place it is used, uses its initial constant value, then the
following conditionally values set to the variable are unused.
Specifically, it was commit 234c3fab28c14846b962c90097496b27ee1b4df8
that changed the use of display_text_first such that it doesn't have any
effect.
closes: #14305
Signed-off-by: Dylan Thacker-Smith <dylan.ah.smith@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 26 Mar 2024 18:15:05 +0100 |
parents | 08940efa6b4e |
children |
line wrap: on
line source
" Tests for large files " This is only executed manually: "make test_largefile". " This is not run as part of "make test". func Test_largefile() let fname = 'Xlarge.txt' call delete(fname) exe "e" fname " Make sure that a line break is 1 byte (LF). set ff=unix set undolevels=-1 " Input 99 'A's. The line becomes 100 bytes including a line break. exe "normal 99iA\<Esc>" yank " Put 39,999,999 times. The file becomes 4,000,000,000 bytes. normal 39999999p " Moving around in the file randomly. normal G normal 10% normal 90% normal 50% normal gg w " Check if the file size is 4,000,000,000 bytes. let fsize=getfsize(fname) call assert_true(fsize == 4000000000) call delete(fname) endfunc " vim: shiftwidth=2 sts=2 expandtab