aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
...
* | highlight: :match should override 'list' (#6343)Yichao Zhou2017-03-26
| | | | | | Closes #4946
* | Merge #6221Justin M. Keyes2017-03-25
|\ \
| * | Robustly handle folds during a :move commandMatthew Malcomson2017-03-23
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to re-order marks according to the :move command, do_move() uses mark_adjust() in a non-standard manner. The non-standard action is that it moves some marks *past* other marks. This doesn't matter for marks, but mark_adjust() calls foldMarkAdjust() which simply changes fold starts and lengths and doesn't have enough information to know that other folds have to be checked and reordered. The array of folds for each window are assumed to be in order of increasing line number, and if this gets broken some folds can get "lost". There has been a previous patch to avoid this problem by deleting and recalculating all folds in the window, but this comes at the cost of closing all folds when executing :move, and doesn't cover the case of manual folds. This patch adds a new function foldMoveRange() specifically for the :move command that handles reordering folds as well as simply moving them. Additionally, we allow calling mark_adjust_nofold() that does the same as mark_adjust() but doesn't affect any fold array. Calling mark_adjust_nofold() should be done in the same manner as calling mark_adjust(), but according changes to the fold arrays must be done seperately by the calling function. vim-patch:8.0.0457 vim-patch:8.0.0459 vim-patch:8.0.0461 vim-patch:8.0.0465
* / vim-patch:8.0.0259Justin M. Keyes2017-03-22
|/ | | | | | | Problem: Tab commands do not handle count correctly. (Ken Hamada) Solution: Add ADDR_TABS_RELATIVE. (Hirohito Higashi) https://github.com/vim/vim/commit/2f72c70657129c16e6b0e413752a775c804f02f8
* clipboard: set v:register after startup (#5708)Björn Linse2017-03-18
| | | Fixes #5697
* test/put_spec: 2x speedup (#6294)Matthew Malcomson2017-03-18
| | | | Instead of helpers.clear() between each test, use execute('enew!') and ensure the state that matters is reset between each test.
* terminal: Support extra arguments in 'shell'. #4504Jack Bracewell2017-03-17
| | | | | | | | | | | | | Tokenize p_sh if used as default in ex_terminal(). Previously p_sh was used as the first arg in a list when calling termopen(), this would try to call an untokenized version of shell, meaning if you had an argument in 'shell': set shell=/bin/bash\ --login the command would fail. Helped-by: oni-link <knil.ino@gmail.com> Closes #3999
* Merge #6087 from justinmk/defaultsJustin M. Keyes2017-03-17
|\ | | | | defaults: 'ruler', 'showcmd', 'belloff=all'
| * defaults: 'showcmd', 'belloff', 'ruler'Justin M. Keyes2017-03-16
| | | | | | | | | | | | | | | | | | | | | | - Vim "unix default" of 'noshowcmd' is serving few users. And it's inconsistent. - 'ruler' and 'belloff=all' improve the out-of-the-box experience. - Continue to use 'noshowcmd' and 'noruler' by default in the functional tests to keep them fast. TODO: Add a "disable slow stuff" command or mapping to address the use-case of a very slow terminal connection.
* | job-control: set CLOEXEC on pty processes. #5986Matthew Malcomson2017-03-17
|/ | | | | Before this change, new processes started with libuv prevented SIGHUP from reaching pty processes (by keeping the ptmx file descriptor open).
* test: fix the unit test build on macOS Sierra (#6300)John Szakmeister2017-03-17
| | | | We need to add the SDK includes to the preprocessing step, otherwise it will fail to resolve the system includes such as sys/stat.h and fcntl.h.
* unittests: avoid using pattern matching on file namesJohn Szakmeister2017-03-16
| | | | | | The directory name could contain special characters that trips up the matching used by find. Instead, let's just make sure that the filename starts with the directory name.
* test/termclose: Avoid indeterminism (#6281)Justin M. Keyes2017-03-15
|
* api: add detailed checks for compatibility and correct "since" valueBjörn Linse2017-03-15
|
* api: add api_level_1 fixureBjörn Linse2017-03-15
|
* Merge #6254 'vim-patch:7.4.2135,7.4.2144,7.4.2151'Justin M. Keyes2017-03-15
|\
| * vim-patch:7.4.2135lonerover2017-03-11
| | | | | | | | | | | | | | Problem: Various tiny issues. Solution: Update comments, white space, etc. https://github.com/vim/vim/commit/89eaa4185efacab253b23a182c1c8a7bbf1096c9
* | DirChanged: avoid redundant events on 'autochdir'Justin M. Keyes2017-03-12
| |
* | DirChanged: trigger when switching scopesJustin M. Keyes2017-03-12
| | | | | | | | Closes #6054
* | DirChanged: Publish _after_ updating win/tab CWD.Justin M. Keyes2017-03-12
| | | | | | | | | | | | So getcwd() works correctly during DirChanged event. Closes #6260
* | unittests: Fix linter errorZyX2017-03-12
| |
* | tests: Add description of test directory structure and test env varsZyX2017-03-12
| |
* | unittests: Allow running `ffi.cdef` in the main processZyX2017-03-12
| |
* | unittests: Move filtering cdefs to main processZyX2017-03-12
| |
* | unittests: Use more adequate names for some functionsZyX2017-03-12
| |
* | tests: Allow lfs.attributes to be NULL when traversing FSZyX2017-03-12
| |
* | unittests: Fix linter errorsZyX2017-03-11
| |
* | unittests: Update test/unit/message_spec.luaZyX2017-03-11
| |
* | unittests: Do not use which, add data to paths.lua.in insteadZyX2017-03-11
| |
* | unittests: Always close all pipesZyX2017-03-11
| |
* | unittests: Do not import libnvim or headers in main processZyX2017-03-11
| | | | | | Slows down unit tests much, but gets rid of as much preserved state as possible.
* | unittests: Check core dumps in after_each, like in functestsZyX2017-03-11
| |
* | unittests: Run all unit tests in their own processesZyX2017-03-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Used sed -r -i -e '/ helpers =/ s/$/\nlocal itp = helpers.gen_itp(it)/; s/^(\s*)it\(/\1itp(/' test/unit/**/*_spec.lua to alter all tests. Locally they all run fine now. Reasoning: 1. General: state from one test should not affect other tests. 2. Local: travis build is failing with something which may be an output of garbage collector. This should prevent state of the garbage collector from interferring as well.
* | unittests: Do not run failing test at allZyX2017-03-11
| |
* | unittests: Fix lint errorsZyX2017-03-11
| |
* | unittests: Allow failing test to failZyX2017-03-11
| |
* | unittests: Log syscalls if requestedZyX2017-03-11
| |
* | unittests: Use own bindings to libc syscall wrappersZyX2017-03-11
| |
* | unittests: Do not use syscall library: does not work well with cimportZyX2017-03-11
| |
* | unittests: Try using syscall library instead (ffi-based)ZyX2017-03-11
| |
* | unittests: Pause garbage collector while executing testsZyX2017-03-11
| | | | | | Temporary (?) workaround for currently failing check_alloc_log tests.
* | unittests: Run tests in a separate processZyX2017-03-11
| |
* | test/scrollback: wiggle-room (#6256)Justin M. Keyes2017-03-11
| |
* | rplugin: Call s:LoadRemotePlugins() on startup.Justin M. Keyes2017-03-11
|/ | | | | | | | | | Dispense with the FuncUndefined/CmdUndefined quasi-optimization. If there are no rplugins, plugin/rplugin.vim takes less than 1ms. Closes #5821 Closes #6250 Helped-by: Qiming zhao <chemzqm@gmail.com>
* test/let_spec: self-referencing List. (#6228)Justin M. Keyes2017-03-08
| | | Regression test coverage for #6070.
* Merge pull request #6225 from jamessan/vim-7.4.2051James McCoy2017-03-07
|\ | | | | vim-patch:7.4.2051,7.4.2068,7.4.2097
| * vim-patch:7.4.2068James McCoy2017-03-06
| | | | | | | | | | | | | | | | | | Problem: Not all arguments of trunc_string() are tested. Memory access error when running the message tests. Solution: Add another test case. (Yegappan Lakshmanan) Make it easy to run unittests with valgrind. Fix the access error. https://github.com/vim/vim/commit/b9644433d2728e99fab874e5e33147ad95d23a31
| * vim-patch:7.4.2051James McCoy2017-03-06
| | | | | | | | | | | | | | Problem: No proper testing of trunc_string(). Solution: Add a unittest for message.c. https://github.com/vim/vim/commit/502ae4ba63561c98ac69af26cd9883bfd18d225f
* | api: nvim_buf_set_lines(): Avoid invalid ml_get. #6019Matthew Malcomson2017-03-07
| | | | | | | | | | | | | | | | | | | | When the buffer that nvim_buf_set_lines() is changing is not in any vim window, fix_cursor() leads to calling ml_get_buf() with an invalid line number. The condition that fix_cursor() was called on was (buf == curbuf), but this is always true because of the call to switch_to_win_for_buf() earlier in the function. Instead this should be predicated on (save_curbuf.br_buf == NULL)
* | test: backtick expansion #6218Justin M. Keyes2017-03-06
|/