aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_mksession.vim
Commit message (Collapse)AuthorAge
* test: update tests to work with 'hidden'Gregory Anders2021-08-18
|
* vim-patch:8.1.0829: when 'hidden' is set session creates extra buffersSean Dewar2021-07-17
| | | | | | | | | | | | | | 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.
* refactor(options): remove obsolete distinction of "vi" vs "vim" defaultsBjörn Linse2021-07-14
| | | | | It might come as a schocking surprise, but the defaults we support are the NEOVIM defaults.
* vim-patch:8.2.2827: test file was not deletedJan Edmund Lazo2021-05-05
| | | | | | Problem: Test file was not deleted. Solution: Uncomment the delete() call. (Dominique Pellé, closes vim/vim#8172) https://github.com/vim/vim/commit/5f8ed7408aaf477215bcfde3e487e24b9e6ad870
* vim-patch:8.2.2820: session file may divide by zeroJan Edmund Lazo2021-05-05
| | | | | | | | | 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.
* vim-patch:8.2.2776: :mksession uses current value of 'splitbelow' and ↵Jan Edmund Lazo2021-04-22
| | | | | | | | | | | | '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;".
* vim-patch:8.2.2594: alternate buffer added to session file even when it's hiddenJan Edmund Lazo2021-03-13
| | | | | | | | | | | | | | 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
* vim-patch:8.2.2467: script generated by :mkview changes alternate fileSean Dewar2021-02-11
| | | | | | | 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
* vim-patch:8.2.2058: using mkview/loadview changes the jumplistSean Dewar2021-02-11
| | | | | | | | | | | 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.
* vim-patch:8.2.2447: 'foldlevel' not applied to folds restored from sessionJan Edmund Lazo2021-02-01
| | | | | | 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
* vim-patch:8.1.2100: :mksession is not sufficiently testedJan Edmund Lazo2020-12-29
| | | | | | Problem: :mksession is not sufficiently tested. Solution: Add more test cases. (Yegappan Lakshmanan, closes vim/vim#4993) https://github.com/vim/vim/commit/ee1a2b5a2a44dde9b4e9b34141b4d1c7b0e0513f
* vim-patch:8.1.0151: mksession test fails on MS-WindowsJan Edmund Lazo2020-12-29
| | | | | | Problem: Mksession test fails on MS-Windows. Solution: Always use an argument for :lcd. https://github.com/vim/vim/commit/81e2ac7bb68a0321529ad5c89c8674caab4bca6b
* vim-patch:8.1.0149: session is wrong with multiple tabs when :lcd was usedJan Edmund Lazo2020-12-29
| | | | | | | | 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
* vim-patch:8.1.0734: the hlsearch state is not stored in a session file (#13547)Jan Edmund Lazo2020-12-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* vim-patch:8.2.1936: session sets the local 'scrolloff' value to the global valueJan Edmund Lazo2020-11-01
| | | | | | | 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
* vim-patch:8.1.2275: using "seesion" looks like a mistakeJan Edmund Lazo2020-08-23
| | | | | | Problem: Using "seesion" looks like a mistake. Solution: Use an underscore to make the function sort first. https://github.com/vim/vim/commit/1e15e61188e14ba67060c09d4c74e9b587016230
* vim-patch:8.1.2098: mksession test fails on MS-WindowsJan Edmund Lazo2020-08-14
| | | | | | Problem: mksession test fails on MS-Windows. Solution: Skip testing with backslashes on MS-Windows. https://github.com/vim/vim/commit/37ac4a531ce58daa201e3e045ef553734eaa432a
* vim-patch:8.1.2097: :mksession is not sufficiently testedJan Edmund Lazo2020-08-14
| | | | | | Problem: :mksession is not sufficiently tested. Solution: Add more test cases. (Yegappan Lakshmanan, closes vim/vim#4992) https://github.com/vim/vim/commit/66f0e6c6e201c75c24d4aa8fac46e926f7ac9054
* vim-patch:8.1.1581: shared functions for testing are disorganisedJan Edmund Lazo2020-05-03
| | | | | | 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
* vim-patch:8.1.0816: test for 'runtimepath' in session fails on MS-WindowsBilly Su2020-05-02
| | | | | | Problem: Test for 'runtimepath' in session fails on MS-Windows. Solution: Skip the test for now. https://github.com/vim/vim/commit/681b6bc86c8f60473854c0141935c07494528884
* vim-patch:8.1.0814: :mksession cannot handle a very long 'runtimepath'Billy Su2020-05-02
| | | | | | | | 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
* vim-patch:8.1.0046: loading a session file fails if 'winheight' is bigJan Edmund Lazo2019-09-02
| | | | | | | | | 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
* vim-patch:8.1.1790: :mkvimrc is not testedJan Edmund Lazo2019-08-26
| | | | | | Problem: :mkvimrc is not tested. Solution: Add a test. https://github.com/vim/vim/commit/8750026a7f6b445c43adc990141a3fe92d680b62
* Remove code that is no longer needed by set shellslasherw72019-08-17
|
* vim-patch:8.1.0789: session sets v:errmsg #10553Jan Edmund Lazo2019-07-20
| | | | | Problem: Sourcing a session sets v:errmsg. Solution: Use "%argdel" instead of "argdel *". (Jason Franklin) https://github.com/vim/vim/commit/555de4e3b2881b0d9a72242ecc2ba26b5c698c85
* vim-patch:8.1.0807: session test fails on MS-WindowsDaniel Hahler2019-06-08
| | | | | | Problem: Session test fails on MS-Windows. Solution: Don't try creating file with illegal name. https://github.com/vim/vim/commit/9e79ccbe9ce6fce18939c7ac2e5ad059a3bd1951
* oldtests: win: filename cannot have "Jan Edmund Lazo2019-04-05
|
* vim-patch:8.1.0803: session restore: handle single quotes #9620Marco Hinz2019-02-17
| | | | | | | | | 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
* oldtests: win: fix pathsep in :mkview testJan Edmund Lazo2018-09-03
|
* vim-patch:8.1.0336: mkview test still fails on CIJan Edmund Lazo2018-09-02
| | | | | | Problem: mkview test still fails on CI. Solution: Ignore curswant, don't see another solution. https://github.com/vim/vim/commit/dd5d18eadffadc723ff7d3e208a2973d267a6dde
* vim-patch:8.1.0335: mkview test fails on CIJan Edmund Lazo2018-09-02
| | | | | | Problem: mkview test fails on CI. Solution: Attempt to force recomputing curswant after folding. https://github.com/vim/vim/commit/2bf4fe07b651e2a72fcfbfdb0719b402ea0b0a10
* vim-patch:8.1.0333: :mkview does not restore cursor properly after "$"Jan Edmund Lazo2018-09-02
| | | | | | | Problem: :mkview does not restore cursor properly after "$". (Dominique Pelle) Solution: Position the cursor with "normal! $". https://github.com/vim/vim/commit/92c1b696413bf0e28f2fec22090d42e8a825eff2
* vim-patch:8.1.0331: insufficient test coverage for :mkview and :loadviewJan Edmund Lazo2018-09-02
| | | | | | Problem: Insufficient test coverage for :mkview and :loadview. Solution: Add tests. (Dominique Pelle, closes vim/vim#3385) https://github.com/vim/vim/commit/627cb6a6b37d17433fe2d7df1f287eefb5b370e3
* vim-patch:8.0.1025James McCoy2017-09-26
| | | | | | | Problem: Stray copy command in test. Solution: Remove the copy command. https://github.com/vim/vim/commit/4e83961985abb78757b135f29ac4ffde675247af
* vim-patch:8.0.1024James McCoy2017-09-26
| | | | | | | | 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
* vim-patch:8.0.0258James McCoy2017-09-26
| | | | | | | Problem: mksession test leaves file behind. Solution: Delete the file. Rename files to start with "X". https://github.com/vim/vim/commit/c9b56b2ceb4662f87c39ea07ba5090a073fd6286
* vim-patch:8.0.0253James McCoy2017-09-26
| | | | | | | | | 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
* vim-patch:8.0.0112James McCoy2017-09-26
| | | | | | | 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
* vim-patch:8.0.0294 (#7305)Michael Schupikov2017-09-23
Problem: Argument list is not stored correctly in a session file. (lgpasquale) Solution: Use "$argadd" instead of "argadd". (closes vim/vim#1434) https://github.com/vim/vim/commit/79da563cf9220b9abb83455a68d995684133ea56 Signed-off-by: Michael Schupikov <michael@schupikov.de>