aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
* vim-patch:7.4.1768James McCoy2016-12-27
| | | | | | | | Problem: Arguments of setqflist() are not checked properly. Solution: Add better checks, add a test. (Nikolai Pavlov, Hirohito Higashi, closes vim/vim#661) https://github.com/vim/vim/commit/d106e5ba7f10f0d2a14eaefe5d78405044416cb9
* test: quickfix: Move upstream vim quickfix test to src/nvim/testdirJames McCoy2016-12-27
| | | | | Massaging the upstream patches for this test into the lua tests are too cumbersome and slow down patching.
* test: job_spec: Avoid unreliable screen test.Justin M. Keyes2016-12-23
|
* eval.c: set_selfdict(): Fix invalid memory access.Justin M. Keyes2016-12-14
|
* Merge pull request #5760 from jamessan/shada-percent-countJames McCoy2016-12-13
|\ | | | | shada: Respect the optional buffer count for shada-%
| * shada: Respect the optional buffer count for shada-%James McCoy2016-12-12
| | | | | | | | Closes #5759
* | Make VimL code compatible with merged Partial support (#5765)Marco Hinz2016-12-13
|/ | | Closes #5763.
* Add some tests and cleanup.Michael Ennen2016-12-12
|
* Make partials work with jobs, timers, and dictwatchers.Björn Linse2016-12-12
|
* vim-patch:7.4.1605Michael Ennen2016-12-12
| | | | | | | Problem: Catching exception that won't be thrown. Solution: Remove try/catch. https://github.com/vim/vim/commit/3905e291fe4375ca5c59efa9ffcb01a39c7be3a9
* test: jobstart()Justin M. Keyes2016-12-11
|
* jobstart(): Return -1 if cmd is not executable. #5671Aaron Williamson2016-12-10
| | | | Closes #5465
* os/shell: do_os_system(): Always show last chunk.Justin M. Keyes2016-12-10
| | | | | | | | | | | | | | | | | | | | | This ameliorates use-cases like: :!cat foo.txt :make where the user is interested in the last few lines of output. Try these shell-based ex-commands before/after this commit: :grep -r '' * :make :!yes :!grep -r '' * :!git grep '' :!cat foo :!echo foo :!while true; do date; done :!for i in `seq 1 20000`; do echo XXXXXXXXXX $i; done In all cases the last few lines of the command should always be shown, regardless of where throttling was triggered.
* os/shell: Throttle :! output, pulse "..." message.Justin M. Keyes2016-12-09
| | | | | | | | | | | | | | | | | | | | | | | | | | Periodically skip :! spam. This is a "cheat" that works for all UIs and greatly improves responsiveness when :! spams MB or GB of output: :!yes :!while true; do date; done :!git grep '' :grep -r '' * After ~10KB of data is seen from a single :! invocation, output will be skipped for ~1s and three dots "..." will pulse in the bottom-left. Thereafter the behavior alternates at every: * 10KB received * ~1s throttled This also avoids out-of-memory which could happen with large :! outputs. Note: This commit does not change the behavior of execute(':!foo'). execute(':!foo') returns the string ':!foo^M', it captures *only* Vim messages, *not* shell command output. Vim behaves the same way. Use system('foo') for capturing shell command output. Closes #1234 Helped-by: oni-link <knil.ino@gmail.com>
* tui: "backpressure": Drop messages to avoid flooding.Justin M. Keyes2016-12-09
| | | | | | | | | Closes #1234 multiqueue: - Implement multiqueue_size() - Rename MultiQueueItem.parent to MultiQueueItem.parent_item, to avoid confusion with MultiQueue.parent.
* test: Handle SIGHUP in tty-test fixture.Justin M. Keyes2016-12-07
| | | | Closes #5727
* test: Disable unreliable tests on travis+ASAN_UBSANJustin M. Keyes2016-12-07
|
* test: helpers.retry()Justin M. Keyes2016-12-07
|
* Tests: add tests for v:exitingMarco Hinz2016-12-01
|
* Merge pull request #5669 from chemzqm/add-cmdline-mode-rpcBjörn Linse2016-12-01
|\ | | | | Add cmdline mode to ui_mode_change
| * add cmdline mode to modechange of RPC and testschemzqm2016-11-30
| | | | | | | | | | | | | | | | use set_cursor_shape_bar for cmdline mode fix test of screen_basic_spec.lua & screen.lua comment fix
* | Merge pull request #5662 from brcolow/vim-7.4.1701James McCoy2016-12-01
|\ \ | | | | | | vim-patch:7.4.1701
| * | vim-patch:7.4.1701Michael Ennen2016-11-24
| | | | | | | | | | | | | | | | | | | | | Problem: Equivalence classes still tested in old style tests. Solution: Remove the duplicate. https://github.com/vim/vim/commit/f9f22dbe4f90673ecce601a9dee4bb750ce3cd8f
* | | vim-patch:7.4.1699 (#5660)Michael Ennen2016-11-29
| |/ |/| | | | | | | | | Problem: :packadd does not work the same when used early or late. Solution: Always load plugins matching "plugin/**/*.vim". https://github.com/vim/vim/commit/71fb0c146bef08dc276fc5793bd47366e6e0f32a
* | ui: add tests for ui_mode_changeBjörn Linse2016-11-25
| | | | | | | | | | Also fix snapshot_util() to work even if default_attr_ids is not a proper lua array.
* | vim-patch:7.4.1660Shougo Matsushita2016-11-22
|/ | | | | | | Problem: has('patch-7.4.1') doesn't work. Solution: Fix off-by-one error. (Thinca) https://github.com/vim/vim/commit/819821c5a95fc60797ecbb5e5ca1302e397e3d9a
* jobs: ensure calling jobclose() on a pty job sends SIGHUP. Closes #5619Björn Linse2016-11-17
|
* build: Target luacheck HEAD.Justin M. Keyes2016-11-17
| | | | | | | | | | | | https://github.com/mpeterv/luacheck/pull/81#issuecomment-261099606 > If you really want to use bleeding-edge version you should get the > rockspec from master branch, not a fixed commit ... > The correct way to install from a specific commit is cloning that > commit and running "luarocks make" from project directory. The reason > is that running "install" or "build" on an scm rockspec fetches > sources from master but uses build description from the rockspec > itself, which may be outdated.
* vim-patch:7.4.1664James McCoy2016-11-15
| | | | | | | Problem: Crash in :cgetexpr. Solution: Check for NULL pointer. (Dominique) Add a test. https://github.com/vim/vim/commit/89c64d557dbe0bacfdd7b2872411b00cc1523d85
* vim-patch:7.4.1650James McCoy2016-11-15
| | | | | | | Problem: Quickfix test fails. Solution: Accept any number of matches. https://github.com/vim/vim/commit/f68f1d70799631d38461c36cd59d08cf839b010d
* vim-patch:7.4.1647James McCoy2016-11-15
| | | | | | | Problem: Using freed memory after setqflist() and ":caddbuffer". (Dominique) Solution: Set qf_ptr when adding the first item to the quickfix list. https://github.com/vim/vim/commit/8b20179c657b4266dff115486ca68c6a50324071
* Bump all nvim-specific error codes above E5000James McCoy2016-11-15
| | | | | | | | | | In order to not conflict with new error codes that Vim adds, all Neovim error codes should be above 5000. The three existing sub-5000 error codes (E926, E951, and E952) are now E50003, E5004, and E5005 respectively. E953 was removed in 6167ce6df2753d5474ad49aea19f5957128ab015, so just remove it from the help.
* vim-patch:7.4.1640James McCoy2016-11-15
| | | | | | | | Problem: Crash when an autocommand changes a quickfix list. (Dominique) Solution: Check wether an entry is still valid. (Yegappan Lakshmanan, Hirohito Higashi) https://github.com/vim/vim/commit/ffec3c53496d49668669deabc0724ec78e2274fd
* vim-patch:8.0.0035 (#5609)Shougo2016-11-15
| | | | | | | Problem: Order of matches for 'omnifunc' is messed up. (Danny Su) Solution: Do not set compl_curr_match when called from complete_check(). (closes vim/vim#1168) https://github.com/vim/vim/commit/472e85970ee3a80abd824bef510df12e9cfe9e96
* Merge #5607 from justinmk/icmJustin M. Keyes2016-11-15
|\ | | | | 'inccommand': auto-disable if too slow; fix other behaviors
| * 'inccommand': Add tests.Justin M. Keyes2016-11-15
| |
| * inccommand=nosplit: Jump to first match.Justin M. Keyes2016-11-15
| | | | | | | | | | | | Call update_topline() to adjust the current viewport. Closes #5597
* | vim-patch:7.4.1658James McCoy2016-11-14
|/ | | | | | | | Problem: A plugin does not know when VimEnter autocommands were already triggered. Solution: Add the v:vim_did_enter variable. https://github.com/vim/vim/commit/1473551a4457d4920b235eeeb9f279e196ee7225
* test: window_spec: Remove flaky terminal resize testJames McCoy2016-11-13
|
* Merge #5582 from justinmk/icmJustin M. Keyes2016-11-12
|\ | | | | 'inccommand': Support :smagic/:snomagic. Less jumping around.
| * 'inccommand': Simplify cursor placement logic.Justin M. Keyes2016-11-11
| | | | | | | | | | Remove the inner for-loop; just use the column of the first in-line match.
| * 'inccommand': Restore cursor/view if cancelled.Justin M. Keyes2016-11-10
| | | | | | | | | | Restore cursor position and window "view", if command is cancelled. This is how 'incsearch' works.
| * 'inccommand': buftype=nofile, restore cursor/viewJustin M. Keyes2016-11-10
| | | | | | | | | | | | | | - Use a standard scratch buffer instead of a new 'buftype', functions like curbufIsChanged() already have special handling for scratch bufs. - Cleanup some stuff from the previous merge. - Add support for :smagic, :snomagic. Closes #5578
* | CheckHealth: Include v:throwpoint in error message (#5575)Tommy Allen2016-11-12
| | | | | | | | | | | | | | | | | | | | * health.vim: Include v:throwpoint in error message * health/provider.vim: Check for ruby executable * health/provider.vim: Combine subprocess stdout and stderr * test: Updated CheckHealth test
* | vim-patch:7.4.1634 (#5594)James McCoy2016-11-12
| | | | | | | | | | | | | | Problem: Vertical movement after CTRL-A ends up in the wrong column. (Urtica Dioica) Solution: Set curswant when appropriate. (Hirohito Higashi) https://github.com/vim/vim/commit/8e08125d3a9afd0b16cd84454ae9ddad0abaaab0
* | vim-patch:7.4.1614 (#5593)James McCoy2016-11-12
| | | | | | | | | | | | Problem: Still quickfix test in old style. Solution: Turn test 10 into a new style test. https://github.com/vim/vim/commit/7eba3d2cbf19e731dc51652bc26099cc253d538a
* | vim-patch:7.4.1591James McCoy2016-11-11
|/ | | | | | | Problem: The quickfix title is truncated. Solution: Save the command before it is truncated. (Anton Lindqvist) https://github.com/vim/vim/commit/5584df65a0ca2315d1eebc13c54a448bee4d0758
* Merge #5561 'inccommand'Justin M. Keyes2016-11-09
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Initial work by: Robin Elrharbi-Fleury (Robinhola) Audrey Rayé (Adrey06) Philémon Hullot (DesbyP) Aymeric Collange (aym7) Clément Guyomard (Clement0) Major revisions by: KillTheMule Björn Linse <bjorn.linse@gmail.com> Justin M. Keyes <justinkz@gmail.com>
| * 'inccommand': Preserve curbuf->b_u_newhead.Justin M. Keyes2016-11-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add tests for undotree(). Helped-by: Björn Linse <bjorn.linse@gmail.com> When "curhead" points to a valid head, the value of "newhead" is meaningless (and really should be set to null). The undo state for a buffer is _logically_ the enum: enum UndoState { CurrentHead(head), NewHead(head), EmptyTree } nvim _represents_ this as: whenever `curbuf->b_u_curhead` is nonnull it should be used as the current head, and `curbuf->b_u_newhead` is ignored. If the there is a current head, then this will be redoed on the next redo, and its parent will be undone on next undo. Only if `b_u_curhead` is NULL, `b_u_newhead` will be used as the head to undo (and it is not possible to redo). Also both can be NULL, to indicate an empty undotree. (To be fair, this only strictly true when calling undo.c from the outside, in some places _within_ a function in undo.c both values might be meaningful) Apparently `undotree()` breaks this non-abstraction, this _cosmetic_ issue can easily be fixed by `ex_substitute` also saving and restoring `b_u_newhead`, but is doesn't reflect any error really how `u_undo_and_forget` manipulates the _actual_ state of the undo tree.
| * 'inccommand': preserve 'modified'Justin M. Keyes2016-11-08
| | | | | | | | | | During the live preview, the buffer-local 'modified' flag should not be changed.