aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_undo.vim
Commit message (Collapse)AuthorAge
* test: move oldtests to test directory (#22536)dundargoc2023-03-07
| | | | | 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'.
* vim-patch:9.0.1036: undo misbehaves when writing from an insert mode mappingzeertzjq2022-12-09
| | | | | | | | | Problem: Undo misbehaves when writing from an insert mode mapping. Solution: Sync undo when writing. (closes vim/vim#11674) https://github.com/vim/vim/commit/3f8f82772313af9f2417b06651f30988b63e1c96 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:9.0.0216: undo earlier test sometimes fails on MS-Windows (#19790)zeertzjq2022-08-16
| | | | | Problem: Undo earlier test sometimes fails on MS-Windows. Solution: Use another file name. https://github.com/vim/vim/commit/cce293f87beb57a75ff738fade7fafadbc4a78a9
* vim-patch:8.2.2643: various code not covered by testszeertzjq2022-07-16
| | | | | | | | | Problem: Various code not covered by tests. Solution: Add a few more test. (Yegappan Lakshmanan, closes vim/vim#7995) https://github.com/vim/vim/commit/1f448d906b3c516e5864dc5bae3ddbf3664ee649 Cherry-pick some test_edit.vim changes from patches 8.2.{1022,1432}. Reorder test_undo.vim to match upstream.
* vim-patch:8.2.2608: character input not fully testedzeertzjq2022-07-16
| | | | | | | | Problem: Character input not fully tested. Solution: Add more tests. (Yegappan Lakshmanan, closes vim/vim#7963) https://github.com/vim/vim/commit/f4fcedc59d4cc5ae6b5270a933e8377030283c1c Cherry-pick related changes from patches 8.2.{0433,0866}.
* vim-patch:8.2.0243: insufficient code coverage for ex_docmd.c functionszeertzjq2022-07-12
| | | | | | | | | Problem: Insufficient code coverage for ex_docmd.c functions. Solution: Add more tests. (Yegappan Lakshmanan, closes vim/vim#5618) https://github.com/vim/vim/commit/9f6277bdde97b7767ded43a0b5a2023eb601b3b7 Cherry-pick Test_window_only() from patch 8.2.0203. Cherry-pick a memory leak fix from patch 8.2.0399.
* vim-patch:8.2.3363: when :edit reuses the current buffer the alternate file ↵zeertzjq2022-07-11
| | | | | | | | | | | | is set (#19306) Problem: When :edit reuses the current buffer the alternate file is set to the same buffer. Solution: Only set the alternate file when not reusing the buffer. (closes vim/vim#8783) https://github.com/vim/vim/commit/b8bd2e6ebab03baf2672067067a599df69a278c0 Cherry-pick Test_cmdline_expand_special() from patches 8.2.{0243,2873}. Move Test_cmd_backtick() to the right place.
* vim-patch:8.2.4941: '[ and '] marks may be wrong after undo (#18539)zeertzjq2022-05-12
| | | | | Problem: '[ and '] marks may be wrong after undo. Solution: Adjust the '[ and '] marks if needed. (closes vim/vim#10407, closes vim/vim#1281) https://github.com/vim/vim/commit/82444cefa3fef87624a078ea86a72af7ef4ef42e
* vim-patch:8.1.2013: more functions can be used as methodsSean Dewar2021-11-26
| | | | | | | | | | | Problem: More functions can be used as methods. Solution: Make various functions usable as a method. https://github.com/vim/vim/commit/f92e58cadb03156879e9bdbf6341bf662d9c87cc Cherry-pick s:normalize_fname for tolower test from v8.1.0894 and v8.1.1417 (even though it is unused for now). Fix header for win_id2tabwin in eval.txt.
* test(oldtest): unskip existing tests that use BlobsSean Dewar2021-09-16
|
* test/old: use CheckFunction, enable more testsJan Edmund Lazo2021-03-27
| | | | | | Some skipped tests have custom error messages. Use ":CheckFunction" command for standard error message on missing function.
* vim-patch:8.2.1801: undo file not found when using ":args" or ":next"Jan Edmund Lazo2020-10-05
| | | | | | Problem: Undo file not found when using ":args" or ":next". Solution: Handle like editing another file. (closes vim/vim#7072) https://github.com/vim/vim/commit/55b419b871dd35f5b05dd2aed65f14461b493ba9
* vim-patch:8.1.2024: delete call commented out for debuggingJan Edmund Lazo2020-10-05
| | | | | | Problem: Delete call commented out for debugging. Solution: Restore the delete call. (Christian Brabandt) https://github.com/vim/vim/commit/9283f92008accd0b797d2c913ce191b490ce3c3d
* vim-patch:8.1.1812: reading a truncted undo file hangs VimJan Edmund Lazo2020-10-05
| | | | | | Problem: Reading a truncted undo file hangs Vim. Solution: Check for reading EOF. (closes vim/vim#4769) https://github.com/vim/vim/commit/fb06d767a8d76eead5391302fc88115d6e3879d8
* tests: sync Test_undojoin_redo from Vim #11589Daniel Hahler2019-12-22
| | | This was not added in e0e482589 with Vim patch 8.0.0205.
* vim-patch:8.2.0012: some undo functionality is not testedJan Edmund Lazo2019-12-16
| | | | | | Problem: Some undo functionality is not tested. Solution: Add a few more test cases. (Dominique Pelle, closes vim/vim#5364) https://github.com/vim/vim/commit/559b9c68fe550f3af63d42e0838622aab1ceb1b3
* vim-patch:8.2.0008: test72 is old styleJan Edmund Lazo2019-12-16
| | | | | | Problem: Test72 is old style. Solution: Convert to new style test. (Yegappan Lakshmanan, closes vim/vim#5362) https://github.com/vim/vim/commit/3e2d1c8cd61ca073e680f3b221ce887e05ba39cf
* Remove code that is no longer needed by set shellslasherw72019-08-17
|
* vim-patch:8.1.1353: undo test fails on MacFrancisco Giordano2019-05-19
| | | | | | Problem: Undo test fails on Mac. Solution: Expect "private" on the Mac. https://github.com/vim/vim/commit/2b39d806f04c1a474b6d689a7970253850d4adb8
* vim-patch:8.1.1352: undofile() reports wrong nameFrancisco Giordano2019-05-19
| | | | | | | Problem: Undofile() reports wrong name. (Francisco Giordano) Solution: Clean up the name before changing path separators. (closes vim/vim#4392, closes vim/vim#4394) https://github.com/vim/vim/commit/e9ebc9a91cac357fd4888f4b71fdff7d97b41160
* vim-patch:8.0.1267: Test_swap_group may leave file behindJan Edmund Lazo2019-04-29
| | | | | | Problem: Test_swap_group may leave file behind. Solution: Add a try/finally. https://github.com/vim/vim/commit/5842a748be8039fd6d267f5557fe391c6c95399d
* vim-patch:8.1.0585: undo test may fail on MS-WindowsJan Edmund Lazo2018-12-14
| | | | | | Problem: Undo test may fail on MS-Windows. Solution: Also handle lower case drive letters. https://github.com/vim/vim/commit/56242f2b08737677812513c447955579a19aa620
* vim-patch:8.0.1441: using ":undo 0" leaves undo in wrong stateJan Edmund Lazo2018-08-20
| | | | | | | Problem: Using ":undo 0" leaves undo in wrong state. Solution: Instead of searching for state 1 and go above, just use the start. (Ozaki Kiichi, closes vim/vim#2595) https://github.com/vim/vim/commit/ce46d934af35d0f774be7f996001db03cf0b894a
* oldtests: Test_undofile() passesJan Edmund Lazo2018-08-09
| | | | | | Set undodir to Vim's default value. Fix pathsep of expected undofile path for Windows. Comment out invalid test case for Neovim.
* vim-patch:8.1.0025: no test for the undofile() functionJan Edmund Lazo2018-08-09
| | | | | | Problem: No test for the undofile() function. Solution: Add test. (Dominique Pelle, closes vim/vim#2958) https://github.com/vim/vim/commit/e5fa11186fde4a19e505eba403d3af8c61d11304
* vim-patch:8.0.1433: illegal memory access after undoJan Edmund Lazo2018-08-09
| | | | | | | Problem: Illegal memory access after undo. (Dominique Pelle) Solution: Avoid the column becomes negative. (Christian Brabandt, closes vim/vim#2533) https://github.com/vim/vim/commit/95dbcbea6d85a5b79d9617ab3863458fdf0217a0
* vim-patch:8.0.1290: seq_cur of undotree() wrong after undoJan Edmund Lazo2018-08-09
| | | | | | | Problem: seq_cur of undotree() wrong after undo. Solution: Get the actual sequence number instead of decrementing the current one. (Ozaki Kiichi, closes vim/vim#2319) https://github.com/vim/vim/commit/80eaddd3a0bc47cb14168964678420cfe03a2502
* vim-patch:8.0.1200: tests switch the bell off twiceJustin M. Keyes2018-02-11
| | | | | | | Problem: Tests switch the bell off twice. Solution: Don't set 'belloff' in individual tests. (Christian Brabandt) https://github.com/vim/vim/commit/67418d97b457d2e27fe342472d3c9fd342ffc47f
* vim-patch:8.0.1475: invalid memory access in read_redo()Justin M. Keyes2018-02-11
| | | | | | | | Problem: Invalid memory access in read_redo(). (gy741) Solution: Convert the replacement character back from a negative number to CR or NL. (hint by Dominique Pelle, closes vim/vim#2616) https://github.com/vim/vim/commit/f12519dec88251305793f1651f558d16506b4be2
* vim-patch:8.0.1221: still too many old style testsJustin M. Keyes2018-02-11
| | | | | | | | Problem: Still too many old style tests. Solution: Convert a few more tests to new style. (Yegappan Lakshmanan, closes vim/vim#2256) https://github.com/vim/vim/commit/15993ce9210e8b8d4bc11e1d640f6447b18d3e6c
* vim-patch:8.0.0433: beeps when running testsJustin M. Keyes2018-01-21
| | | | | | | Problem: Quite a few beeps when running tests. Solution: Set 'belloff' for these tests. (Christian Brabandt) https://github.com/vim/vim/commit/c3c766ea8c35f5b2bd45fb3d74d0ae46b2d8c24f
* vim-patch:8.0.0149 (#7127)KunMing Xie2017-08-08
| | | | | | | | | Problem: ":earlier" and ":later" do not work after startup or reading the undo file. Solution: Use absolute time stamps instead of relative to the Vim start time. (Christian Brabandt, Pavel Juhas, closes vim/vim#1300, closes vim/vim#1254) https://github.com/vim/vim/commit/cbd4de44e8d08fba3c09eb40ad6e36e83faf020a
* vim-patch:7.4.2296lonerover2017-03-22
| | | | | | | Problem: No tests for :undolist and "U" command. Solution: Add tests. (Dominique Pelle) https://github.com/vim/vim/commit/c628fdcd46e93c308f742efdf54248695960e290
* os_set_cloexec: Fix condition. #5986Justin M. Keyes2017-03-17
| | | | Also: skip Test_undo_del_chars the right way. #6287
* vim-patch:7.4.2113 #6287raichoo2017-03-17
Problem: Test for undo is flaky. Solution: Turn it into a new style test. Use test_settime() to avoid flakyness. https://github.com/vim/vim/commit/170b10b421f0c9fda08b7cfd3bb043c064f3659a