| Commit message (Collapse) | Author | Age |
| |
|
|
|
| |
The new oldtest directory is in test/old/testdir. The reason for this is
that many tests have hardcoded the parent directory name to be
'testdir'.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Problem: Not enough folding code is tested.
Solution: Add more test cases. (Yegappan Lakshmanan, closes vim/vim#8046)
https://github.com/vim/vim/commit/5c504f680e63120fea36becfabb8d939d4449e34
Reorder test_fold.vim to match upstream.
Cherry-pick Test_fold_expr_error() from patch 8.2.0633.
Cherry-pick syntax feature check from patch 8.2.1432.
Cherry-pick a delete() call from patch 8.2.2112.
|
| |
|
|
|
|
|
|
|
| |
Problem: Vim9: return type of readfile() is any.
Solution: Add readblob() so that readfile() can be expected to always
return a list of strings. (closes vim/vim#7671)
https://github.com/vim/vim/commit/c423ad77ed763c11ba67729bbf63c1cf0915231f
Co-authored-by: Bram Moolenaar <Bram@vim.org>
|
| |
|
|
|
|
| |
Problem: Not all options code is covered by tests.
Solution: Add more tests for options. (Yegappan Lakshmanan, closes vim/vim#8369)
https://github.com/vim/vim/commit/5958549760652c173b703613b9cbf09b25a4eddb
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a port of these two patches combined:
vim-patch:8.1.1524: tests are silently skipped
Problem: Tests are silently skipped.
Solution: Throw an exception for skipped tests in more places.
https://github.com/vim/vim/commit/b0f94c1ff34d27d33aa9f96204985ea29c2eb0a1
vim-patch:8.1.1544: some balloon tests don't run when they can
Problem: Some balloon tests don't run when they can.
Solution: Split GUI balloon tests off into a separate file. (Ozaki Kiichi,
closes vim/vim#4538) Change the feature check into a command for
consistency.
https://github.com/vim/vim/commit/b46fecd3454399f8ebdc5055302e4bfc5a10f98b
Omit test_lua.vim: previous patches are N/A
Omit test_memory_usage.vim: previous patches are N/A
Omit test_textprop.vim: previous patches are N/A
Omit test_winbar.vim: previous patches are N/A
Omit test_termcodes.vim: mostly N/A
Skip Test_mouse_positon() because it uses test_setmouse().
Cannot throw error in a Test_nocatch_ test.
Use latest `CheckFeature clipboard_working` for test_quotestar.vim
|
| |
|
|
|
| |
Problem: :mkview test doesn't test much.
Solution: Save the view with the folds closed. (James McCoy, closes vim/vim#10596)
https://github.com/vim/vim/commit/c829faa8211df52997c0b9ee49cdea0c8786b177
|
| |
|
|
|
|
|
|
|
|
|
| |
warn (#18636)
Problem: When 'shortmess' contains 'A' loading a session may still warn for
an existing swap file. (Melker Österberg)
Solution: Keep the 'A' flag to 'shortmess' in the session file.
(closes vim/vim#10443)
https://github.com/vim/vim/commit/aaadb5b6f76ea03e5eb460121f3dbf46ad04ce50
Use readfile() with "B" flag in test as readblob() needs patch 8.2.2343.
|
| |
|
|
|
|
|
|
| |
(#17908)
Problem: 'shortmess' changed when session does not store options.
Solution: Save and restore 'shortmess' if needed. (James Charti,
closes vim/vim#10037)
https://github.com/vim/vim/commit/fd01280d01c2270a320d8c962d24140a8176a400
|
| |
|
|
|
|
|
| |
Problem: Check for existing buffer in session file does not work for files
in the home directory.
Solution: Use fnamemodify(). (James Cherti, closes vim/vim#9945) Add a test.
https://github.com/vim/vim/commit/7d42840033aedf36389208b62e28b4e0b251c199
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
different (#17112)
Problem: After restoring a session buffer order can be quite different.
Solution: Create buffers first. (Evgeni Chasnovski, closes vim/vim#9520)
https://github.com/vim/vim/commit/26ebf1f036517ebeacf571c333a83cca7e13bbe2
---------------
As in Vim, this basically reverts 8.1.0829 providing different solution
(see vim/vim#9520).
Regarding Neovim, this basically reverts changes from #15062. Test about
restoring same terminals was a bit too restrictive with using actual
buffer ids, which changed with this patch (now they should be in the
same order as at `mksession` call), so I tweaked it.
|
| |
|
|
|
|
|
|
| |
Problem: Session does not restore help buffer properly when "options' is
missing from 'sessionoptions'.
Solution: Use a ":help" command to create the help window. (closes vim/vim#9475,
closes vim/vim#9458, closes vim/vim#9472)
https://github.com/vim/vim/commit/8e7d9db32b53ca2b1cb7570d2042860bcd1e943f
|
| |
|
|
|
|
| |
We should now be equal with Vim in regards to method call support of already ported built-ins.
Enable all relevant commented-out uses of the syntax in tests that I could grep.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Problem: When 'hidden' is set session creates extra buffers.
Solution: Move :badd commands to the end. (Jason Franklin)
https://github.com/vim/vim/commit/d39e275b57493f9e25e1b62f84810571eee30cf4
Adjust some tests in ex_cmds/mksession_spec.lua:
- 'restores same :terminal buf in splits': Buffers aren't always :badded
in the same order as they're :edited, :balted, etc, so the order of
buffers in the buffer list may change slightly now that :badd happens
afterwards.
- 'restores buffers with tab-local CWD': This is explained in a comment.
|
| |
|
|
|
| |
It might come as a schocking surprise, but the defaults we support
are the NEOVIM defaults.
|
| |
|
|
|
|
| |
Problem: Test file was not deleted.
Solution: Uncomment the delete() call. (Dominique Pellé, closes vim/vim#8172)
https://github.com/vim/vim/commit/5f8ed7408aaf477215bcfde3e487e24b9e6ad870
|
| |
|
|
|
|
|
|
|
| |
Problem: Session file may divide by zero.
Solution: Avoid writing difide by zero. (closes vim/vim#8162)
https://github.com/vim/vim/commit/b6c2e9a010ebd7db586081957e634903d4972fa1
Avoid typecasts if possible.
Use PRIdLINENR, PRId64, to format line numbers.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
'splitright' (#14398)
Problem: :mksession uses current value of 'splitbelow' and 'splitright'
even though "options" is not in 'sessionoptions'. (Maxim Kim)
Solution: Save and restore the values, instead of setting to the current
value. (closes vim/vim#8119)
https://github.com/vim/vim/commit/0995c81f2ffe276669daa004f7778ecc6f5ee09d
Patch v8.2.1682 is not ported.
Replace "goto fail;" with "return FAIL;".
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Problem: Alternate buffer added to session file even when it's hidden.
Solution: Check the 'buflisted' option. (closes vim/vim#7951)
https://github.com/vim/vim/commit/0756f757edba755b75e0c9c612ab2f7e673def84
N/A patches for version.c:
vim-patch:8.2.2593: list of distributed files is incomplete
Problem: List of distributed files is incomplete.
Solution: Add a file and rename another.
https://github.com/vim/vim/commit/0de8e2d6a3fae61c4d9dfdd6f16fc5040d994f6c
|
| |
|
|
|
|
|
| |
Problem: Script generated by :mkview changes alternate file.
Solution: Only write :balt in the session file. (Harish Rajagopal,
closes vim/vim#7779)
https://github.com/vim/vim/commit/139348f3e8370826a1ceb10c73f7c7bb586f8125
|
| |
|
|
|
|
|
|
|
|
|
| |
Problem: Using mkview/loadview changes the jumplist.
Solution: Use ":keepjumps". Don't let ":badd" or ":balt" change the
jumplist. (closes vim/vim#7371)
https://github.com/vim/vim/commit/3482be6a33c3a00fe1e8e604310ad3034f593045
Definition for BufWinEnter autocmd in Test_mkview_loadview_jumplist()
was moved down a few lines until after the views are written, as in
Nvim, :loadview throws if the view file can't be opened.
|
| |
|
|
|
|
| |
Problem: 'foldlevel' not applied to folds restored from session.
Solution: Set 'foldlevel' after creaiting the folds. (closes vim/vim#7767)
https://github.com/vim/vim/commit/f9547eb6ef02e305203b859d2dcfdae930b9d544
|
| |
|
|
|
|
| |
Problem: :mksession is not sufficiently tested.
Solution: Add more test cases. (Yegappan Lakshmanan, closes vim/vim#4993)
https://github.com/vim/vim/commit/ee1a2b5a2a44dde9b4e9b34141b4d1c7b0e0513f
|
| |
|
|
|
|
| |
Problem: Mksession test fails on MS-Windows.
Solution: Always use an argument for :lcd.
https://github.com/vim/vim/commit/81e2ac7bb68a0321529ad5c89c8674caab4bca6b
|
| |
|
|
|
|
|
|
| |
Problem: The generated sessions file does not restore tabs properly if :lcd
was used in one of them.
Solution: Create the tab pages before setting the directory. (Yee Cheng
Chin, closes vim/vim#3152)
https://github.com/vim/vim/commit/26d4b896a789e65df7ee0cf3e25056eabc523fda
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Problem: The hlsearch state is not stored in a session file.
Solution: Add "nohlsearch" if appropriate. (Jason Franklin)
https://github.com/vim/vim/commit/e3c74d249ac36404d8af25f74baf335d143b30e3
Vi default for 'sessionoptions' includes 'options'.
Use 'set sessionoptions&vi' to use Vim's default 'sessionoptions'.
If a test sets 'sessionoptions',
reset 'sessionoptions' at the end of the test.
N/A patches for version.c:
vim-patch:8.2.0119: message test fails on some platforms
Problem: Message test fails on some platforms. (Elimar Riesebieter)
Solution: Add type cast to vim_snprintf() argument. (Dominique Pelle)
https://github.com/vim/vim/commit/1470dc35c4b14bda1995b7566c9a41a33eb06517
vim-patch:8.2.0234: message test fails on SunOS
Problem: Message test fails on SunOS.
Solution: Adjust expectation for printf "%p". (Ozaki Kiichi, closes vim/vim#5595)
https://github.com/vim/vim/commit/d5b991493816a2edba7cacdd06820cf3c0abc4dc
vim-patch:8.2.2149: popupwin test for latin1 sometimes fails
Problem: Popupwin test for latin1 sometimes fails.
Solution: Wait for the script to finish.
https://github.com/vim/vim/commit/4c5bdb99ad632d703e94fffafba11b91861fea48
vim-patch:8.2.2150: Github actions CI isn't used for all available platforms
Problem: Github actions CI isn't used for all available platforms.
Solution: Update the github workflows. (Ozaki Kiichi, closes vim/vim#7433)
https://github.com/vim/vim/commit/8ea05de6aa1d133cba3381bcc36adf1736b08e00
vim-patch:8.2.2151: $dir not expanded when configure checks for moonjit
Problem: $dir not expanded when configure checks for moonjit.
Solution: Use double quotes instead of single quotes. (closes vim/vim#7478)
https://github.com/vim/vim/commit/a79a8944dade9115ccaa5a06a076dfb257e56c62
vim-patch:8.2.2153: popupwin test for latin1 still fails sometimes
Problem: Popupwin test for latin1 still fails sometimes.
Solution: Wait for the "cat" command to finish.
https://github.com/vim/vim/commit/b125b535bb0456ab43c10683307a4bc359442d44
vim-patch:8.2.2154: popupwin test for terminal buffer fails sometimes
Problem: Popupwin test for terminal buffer fails sometimes.
Solution: Wait for the prompt to appear.
https://github.com/vim/vim/commit/0353f56ddb379e7f1a68172fa4743355e04df21e
|
| |
|
|
|
|
|
| |
Problem: Session sets the local 'scrolloff' value to the global value.
Solution: Do not let restoring the global option value change the local
value.
https://github.com/vim/vim/commit/388908352f88e7391accb3545b082db0fc89d9f7
|
| |
|
|
|
|
| |
Problem: Using "seesion" looks like a mistake.
Solution: Use an underscore to make the function sort first.
https://github.com/vim/vim/commit/1e15e61188e14ba67060c09d4c74e9b587016230
|
| |
|
|
|
|
| |
Problem: mksession test fails on MS-Windows.
Solution: Skip testing with backslashes on MS-Windows.
https://github.com/vim/vim/commit/37ac4a531ce58daa201e3e045ef553734eaa432a
|
| |
|
|
|
|
| |
Problem: :mksession is not sufficiently tested.
Solution: Add more test cases. (Yegappan Lakshmanan, closes vim/vim#4992)
https://github.com/vim/vim/commit/66f0e6c6e201c75c24d4aa8fac46e926f7ac9054
|
| |
|
|
|
|
| |
Problem: Shared functions for testing are disorganised.
Solution: Group finctions in script files. (Ozaki Kiichi, closes vim/vim#4573)
https://github.com/vim/vim/commit/7a39dd7f00239059ce34660611589b26126a550c
|
| |
|
|
|
|
| |
Problem: Test for 'runtimepath' in session fails on MS-Windows.
Solution: Skip the test for now.
https://github.com/vim/vim/commit/681b6bc86c8f60473854c0141935c07494528884
|
| |
|
|
|
|
|
|
| |
Problem: :mksession cannot handle a very long 'runtimepath'. (Timothy
Madden)
Solution: Expand each part separately, instead of the whole option at once.
(Christian Brabandt, closes vim/vim#3466)
https://github.com/vim/vim/commit/ed18f2c03ae4786b489943cb575bb781a70356e4
|
| |
|
|
|
|
|
|
|
| |
Problem: Loading a session file fails if 'winheight' is a big number.
Solution: Set 'minwinheight' to zero at first. Don't give an error when
setting 'minwinheight' while 'winheight' is a big number.
Fix using vertical splits. Fix setting 'minwinwidth'.
(closes vim/vim#2970)
https://github.com/vim/vim/commit/1c3c10492a291270fa89b3c8df11828792f927d3
|
| |
|
|
|
|
| |
Problem: :mkvimrc is not tested.
Solution: Add a test.
https://github.com/vim/vim/commit/8750026a7f6b445c43adc990141a3fe92d680b62
|
| | |
|
| |
|
|
|
| |
Problem: Sourcing a session sets v:errmsg.
Solution: Use "%argdel" instead of "argdel *". (Jason Franklin)
https://github.com/vim/vim/commit/555de4e3b2881b0d9a72242ecc2ba26b5c698c85
|
| |
|
|
|
|
| |
Problem: Session test fails on MS-Windows.
Solution: Don't try creating file with illegal name.
https://github.com/vim/vim/commit/9e79ccbe9ce6fce18939c7ac2e5ad059a3bd1951
|
| | |
|
| |
|
|
|
|
|
|
|
| |
Problem: Session file has problem with single quote in file name. (Jon
Crowe)
Solution: Use a double quoted string. Add a test.
https://github.com/vim/vim/commit/ad36a3588d32985ee27bd11aa97e5195ef623158
Fixes https://github.com/neovim/neovim/issues/9618
|
| | |
|
| |
|
|
|
|
| |
Problem: mkview test still fails on CI.
Solution: Ignore curswant, don't see another solution.
https://github.com/vim/vim/commit/dd5d18eadffadc723ff7d3e208a2973d267a6dde
|
| |
|
|
|
|
| |
Problem: mkview test fails on CI.
Solution: Attempt to force recomputing curswant after folding.
https://github.com/vim/vim/commit/2bf4fe07b651e2a72fcfbfdb0719b402ea0b0a10
|
| |
|
|
|
|
|
| |
Problem: :mkview does not restore cursor properly after "$". (Dominique
Pelle)
Solution: Position the cursor with "normal! $".
https://github.com/vim/vim/commit/92c1b696413bf0e28f2fec22090d42e8a825eff2
|
| |
|
|
|
|
| |
Problem: Insufficient test coverage for :mkview and :loadview.
Solution: Add tests. (Dominique Pelle, closes vim/vim#3385)
https://github.com/vim/vim/commit/627cb6a6b37d17433fe2d7df1f287eefb5b370e3
|
| |
|
|
|
|
|
| |
Problem: Stray copy command in test.
Solution: Remove the copy command.
https://github.com/vim/vim/commit/4e83961985abb78757b135f29ac4ffde675247af
|
| |
|
|
|
|
|
|
| |
Problem: Manual folds are lost when a session file has the same buffer in
two windows. (Jeansen)
Solution: Use ":edit" only once. (Christian Brabandt, closes vim/vim#1958)
https://github.com/vim/vim/commit/4bebc9a0565670b853d227f81a9a31eafdb47eed
|
| |
|
|
|
|
|
| |
Problem: mksession test leaves file behind.
Solution: Delete the file. Rename files to start with "X".
https://github.com/vim/vim/commit/c9b56b2ceb4662f87c39ea07ba5090a073fd6286
|
| |
|
|
|
|
|
|
|
| |
Problem: When creating a session when winminheight is 2 or larger and
loading that session gives an error.
Solution: Also set winminheight before setting winheight to 1. (Rafael
Bodill, neovim vim/vim#5717)
https://github.com/vim/vim/commit/36ae89c550a4f0a380606c3fb4a054957ad698f0
|
| |
|
|
|
|
|
| |
Problem: Tests 92 and 93 are old style.
Solution: Make test92 and test93 new style. (Hirohito Higashi, closes vim/vim#1289)
https://github.com/vim/vim/commit/eca626fcdb73d480660c78b9f84cc043fa561922
|