| Commit message (Collapse) | Author | Age |
| | |
|
| |
|
|
|
|
|
|
|
| |
rationale:
- consistent with D and Y
- long recommended by Vim's own ":help Y"
close #13268
close #416
ref #6289
|
| |
|
|
|
|
|
| |
Problem: BufUnload is not triggered for the quickfix dummy buffer.
Solution: Do trigger BufUnload. (Pontus Leitzler,closes vim/vim#7518, closes vim/vim#7517)
Fix white space around "=".
https://github.com/vim/vim/commit/1cfb9bb5c06c07f14475f39c4eb57fea1f0dfb69
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Problem: Crash when leaving command line window triggers autocommand.
(houyunsong)
Solution: Make sure not to close the current window or buffer.
https://github.com/vim/vim/commit/8c6951fa2836a1ae3257770e7b927a9380439912
N/A patches for version.c:
vim-patch:8.2.2414: using freed memory when closing the cmdline window
Problem: Using freed memory when closing the cmdline window.
Solution: Check the window is still valid.
https://github.com/vim/vim/commit/b7e2670b6a1de02c772af5097ba24f2a15b26eec
|
| |
|
|
|
|
| |
Problem: Autocmd test was failing on MS-Windows with GUI.
Solution: Remove stray feedkeys().
https://github.com/vim/vim/commit/d697ddea1466d877a79f8c56d46361dc54e9baef
|
| |
|
|
|
|
| |
Problem: Strange test failure with MS-Windows.
Solution: Skip the system() call for now.
https://github.com/vim/vim/commit/e2924328c165f1fc549f91bf212c93c87bb1d9ed
|
| |
|
|
|
|
| |
Problem: Crash with a weird combination of autocommands.
Solution: Increment b_nwindows when needed. (closes vim/vim#7674)
https://github.com/vim/vim/commit/797e63b9f2baa1853e7063aac478d663cd02f207
|
| |
|
|
|
|
|
|
|
|
|
| |
Problem: Crash when using :tabonly in an autocommand. (Yegappan Lakshmanan)
Solution: Do not allow the autocommand window to be closed.
https://github.com/vim/vim/commit/cf8441704d6e517bda1899f4afa82c6b4eecbaec
E813 error message does not mention 'popup' window
because Neovim floating window are regular windows, unlike Vim popups.
https://github.com/neovim/neovim/pull/14532#discussion_r631731829
|
| |
|
|
|
|
|
| |
Problem: Some test failures don't give a clear error.
Solution: Use assert_match() and assert_fails() instead of assert_true().
(Ken Takata, closes vim/vim#7368)
https://github.com/vim/vim/commit/5dc4e2f883896c99ebe83355822ac6067970b031
|
| |
|
|
|
|
| |
Some skipped tests have custom error messages.
Use ":CheckFunction" command for standard error message
on missing function.
|
| |
|
|
|
|
| |
Problem: Setting local instead of global flag.
Solution: Prepend "g:" to "test_is_flaky".
https://github.com/vim/vim/commit/30d53e2c11e670845830bdfc29bf8c1615df61a8
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
tests
Problem: Not all tests using a terminal are in the list of flaky tests.
Solution: Introduce the test_is_flaky flag.
https://github.com/vim/vim/commit/3cdcb090a664e182078f7cc0ca3e4e5a94bbb784
Cherry-pick g:test_is_flaky from patch v8.2.0557.
Ensure that test_is_flaky variable is set from the global scope..
N/A patches for version.c:
vim-patch:8.2.2647: terminal test sometimes hangs
Problem: Terminal test sometimes hangs.
Solution: Wait for the shell to display a prompt.
https://github.com/vim/vim/commit/f4a2ed071447ad4984fad55b9d1671b55140ae1c
vim-patch:8.2.2648: terminal resize test sometimes hangs
Problem: Terminal resize test sometimes hangs.
Solution: Wait for the shell to display a prompt and other output.
https://github.com/vim/vim/commit/c54f347d63bcca97ead673d01ac6b59914bb04e5
fixup! vim-patch:8.2.0400: not all tests using a terminal are in the list of flaky tests
|
| |
|
|
|
|
| |
Problem: :doautocmd may confuse scripts listening to WinEnter.
Solution: Do the current buffer last. (closes vim/vim#7958)
https://github.com/vim/vim/commit/41cd80335cf318c15c8b0139f53ab5e8a02561ef
|
| |
|
|
|
|
| |
Problem: Using freed memory if window closed in autocommand. (houyunsong)
Solution: Check the window still exists.
https://github.com/vim/vim/commit/8ab375706e6712308f8cf7529bcae56684a6f385
|
| |
|
|
|
|
|
|
|
| |
Problem: Too many problems with using all autocommand events.
Solution: Disallow defining an autocommand for all events.
https://github.com/vim/vim/commit/9a046fd08bcae319d39a4dbde2be81decee19013
Delete Test_wipe_cbuffer().
Commit dc5f4a3cc2f7f02e1ff4ec2f67eda4fb73e7d89c should have removed it.
|
| |
|
|
|
|
| |
Problem: Stray test failure on Appveyor.
Solution: Finish insert command.
https://github.com/vim/vim/commit/97c6943e11516711541848e51db3cc2ace25bbb2
|
| |
|
|
| |
Patch 8.1.0711 is too difficult to merge in 1 commit.
|
| |
|
|
|
|
| |
Problem: Using "aucmdwin" in win_gettype() is not ideal.
Solution: Rename to "autocmd".
https://github.com/vim/vim/commit/40a019f157c549dcdc17c33f082975485567bb06
|
| |
|
|
|
|
|
|
|
| |
Problem: Cannot get window type for autocmd and preview window.
Solution: Add types to win_gettype(). (Yegappan Lakshmanan, closes vim/vim#6277)
https://github.com/vim/vim/commit/0fe937fd8616fcd24b1b1ef2ab9f1657615dd22c
Cherry-pick test_preview.vim,test_window_cmd.vim changes
from patch v8.2.0522.
|
| |
|
|
|
|
| |
Problem: TermChanged test fails in the GUI.
Solution: Skip the test when running the GUI.
https://github.com/vim/vim/commit/d28e0b3652067788fcc9c99058b0b6eee7beebee
|
| |
|
|
|
|
|
| |
Problem: Setting 'term' may cause error in TermChanged autocommand.
Solution: Use aucmd_prepbuf() to switch to the buffer where the autocommand
is to be executed. (closes vim/vim#5682)
https://github.com/vim/vim/commit/0c81d1b11278b2d962aa6fbb4aa974dab97be59d
|
| |
|
|
|
|
| |
Problem: Autocommand test fails.
Solution: Remove 'closeoff' from 'diffopt'.
https://github.com/vim/vim/commit/a9aa86ff951b7908b615a61a0e216901b96bc0eb
|
| |
|
|
|
|
|
| |
Problem: No simple way to interrupt Vim.
Solution: Add the SigUSR1 autocommand, triggered by SIGUSR1. (Jacob Hayes,
closes vim/vim#1718)
https://github.com/vim/vim/commit/be5ee8686a50acf07b823bd293f9c765e533d213
|
| |
|
|
|
|
| |
Problem: Cannot close the cmdline window from CmdWinEnter. (George Brown)
Solution: Reset cmdwin_result earlier. (Christian Brabandt, closes vim/vim#4980)
https://github.com/vim/vim/commit/23324a0b35d18c5caac20b1d543ed2d1f762f5b5
|
| |
|
|
|
|
| |
Problem: MS-Windows: autocommand test sometimes fails.
Solution: Do not rely on the cat command.
https://github.com/vim/vim/commit/14ddd226daa324831e1872c352452f202fd6068c
|
| |
|
|
|
|
| |
Problem: TextYankPost does not provide info about Visual selection.
Solution: Add the 'visual' key in v:event. (closes vim/vim#6249)
https://github.com/vim/vim/commit/37d1673ce007c46ec2338f3236ae1b7b0324bd25
|
| |
|
|
|
|
|
|
|
| |
* propagate visual selection to textyankpost event
* adapt tests
* add docs
* also adapt oldtest
|
| |
|
|
|
|
| |
Problem: Cannot use :write when using a plugin with BufWriteCmd.
Solution: Reset BF_NOTEDITED after BufWriteCmd. (closes vim/vim#5807)
https://github.com/vim/vim/commit/0fff44152d06e6b662ad4bef172af07a041d2f3f
|
| |
|
|
|
|
| |
Problem: FileReadCmd event not well tested.
Solution: Add a test.
https://github.com/vim/vim/commit/e32848780cc07c368ba2e088cdefdbb8c3b827c2
|
| |
|
|
|
|
|
| |
Problem: feedkeys() with "L" does not work properly.
Solution: Do not set typebuf_was_filled when using "L". (Ozaki Kiichi,
closes vim/vim#3885)
https://github.com/vim/vim/commit/8d4ce56a19ed14d13332f94ad592fff2d9a715d5
|
| |
|
|
|
|
| |
Problem: Code and data in tests can be hard to read.
Solution: Use the new heredoc style. (Yegappan Lakshmanan, closes vim/vim#4400)
https://github.com/vim/vim/commit/c79745a82faeb5a6058e915ca49a4c69fa60ea01
|
| |
|
|
|
|
| |
Problem: In tests, when WaitFor() fails it doesn't say why. (James McCoy)
Solution: Add WaitForAssert(), which produces an assert error when it fails.
https://github.com/vim/vim/commit/50182fa84e20a0547f3e2bd6683ef799fcd27855
|
| |
|
|
|
| |
Problem: Screen dump is made too soon.
Solution: Wait until the ruler is displayed. (Ozaki Kiichi, closes vim/vim#2755)
https://github.com/vim/vim/commit/1834d37396e046ccbc4aa2678ba16a38197da6b4
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This is better practice in general, and allows to remove the "helptags
ALL" hacks.
Ref: https://github.com/neovim/neovim/issues/8824
Ref: https://github.com/neovim/neovim/commit/f1b67c3453c
* Makefile: fix dependencies with regard to helptags
- use the file as the main target to avoid unnecessary triggering
- use "make oldtest" on Travis to ensure it gets built
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Re-enable Test_BufLeave_Wipe. 66f5e5c7d7ce
This is my (probably-wrong) application of Zyx's suggestion in #9163:
> free_buffer_stuff() already removes changedtick. It is better to
> make `free_options` a flag variable and avoid calling
> buf_init_changedtick() based on some flag there: current workflow
> looks weird as it first removes `b:changedtick`, then re-adds it
> by calling buf_init_changedtick(), then remove again.
> Also based on my understanding it looks logical to not remove
> `b:changedtick`, but to *replace* it with something allocated if
> needed based on examining reference count before calling
> `unref_var_dict`. Because now you have key disappearing from
> dictionary for no good reason.
Patch-By: Nikolai Aleksandrovich Pavlov <kp-pav@yandex.ru>
|
| |
|
|
|
|
| |
Problem: Aborting an autocmd with an exception is not tested.
Solution: Add a test. Also shows how to abort a command by throwing an
exception.
https://github.com/vim/vim/commit/23b5139234a79567097ca73aba15ea134381b934
|
| |
|
|
|
|
| |
Problem: In some tests 'tags' is set but not restored. (Daniel Hahler)
Solution: Restore 'tags'. (closes vim/vim#4535)
https://github.com/vim/vim/commit/0331faf71200a274377e1569fcda4f00c9cf3e2a
|
| |
|
|
|
|
| |
Problem: FileChangedShell not sufficiently tested.
Solution: Add a more comprehensive test case.
https://github.com/vim/vim/commit/0566e891f73897486de3f0ac194795eeca0097d6
|
| |
|
|
|
|
|
| |
Problem: Cannot build with +eval but without +channel and +timers. (John
Marriott)
Solution: Adjust #ifdef for get_callback().
https://github.com/vim/vim/commit/97b0075b0d733cc58c29247b09e7887b9991d7bf
|
| |
|
|
|
|
|
| |
Problem: A BufReadPre autocommand may cause the cursor to move.
Solution: Restore the cursor position after executing the autocommand,
unless the autocommand moved it. (Christian Brabandt,
closes vim/vim#4302, closes vim/vim#4294)
https://github.com/vim/vim/commit/a68e59590905da9b4448ff1fcac929ad1a18da9e
|
| |
|
|
|
|
|
| |
Problem: When executing an insecure function the secure flag is stuck.
(Gabriel Barta)
Solution: Restore "secure" instead of decrementing it. (closes vim/vim#3705)
https://github.com/vim/vim/commit/48f377a476e4a3312aa0e3535aba170484b59483
|
| |
|
|
|
|
|
| |
Do this for new-style tests too, because they run after the old-style
tests which don't clean up their temp files.
Reverts ebd251c
|
| | |
|
| |
|
|
|
|
| |
Problem: Some autocmd tests are old style.
Solution: Turn the tests into new style. (Yegappan Lakshmanan, closes vim/vim#4295)
https://github.com/vim/vim/commit/69ea587289b03e23a9fb96adffd6e8173cbc5896
|
| |
|
|
|
|
| |
Problem: Timer interrupting cursorhold and mapping not tested.
Solution: Add tests with timers. (Ozaki Kiichi, closes vim/vim#3871)
https://github.com/vim/vim/commit/26d982185e21398738a9c688429c0a1840d7c9c3
|
| |
|
|
|
|
|
| |
Problem: Making an autocommand trigger once is not so easy.
Solution: Add the ++once argument. Also add ++nested as an alias for
"nested". (Justin M. Keyes, closes vim/vim#4100)
https://github.com/vim/vim/commit/eb93f3f0e2b2ae65c5c3f55be3e62d64e3066f35
|
| | |
|
| | |
|
| |
|
|
|
|
| |
Problem: CmdlineEnter command uses backslash instead of slash.
Solution: Don't treat the character as a file name. (closes vim/vim#2837)
https://github.com/vim/vim/commit/a4baf5b32519855bb176a7aa0e9397c137ca890a
|
| |
|
|
|
|
|
|
| |
Problem: Cannot act on edits in the command line.
Solution: Add the CmdlineChanged autocommand event. (xtal8, closes vim/vim#2603,
closes vim/vim#2524)
https://github.com/vim/vim/commit/153b704e20f9c269450a7d3ea8cafcf942579ab7
|