James McCoy
af2ee9c5d1
cmake: Detect whether msgpack-c has MSGPACK_OBJECT_FLOAT{32,64} types
2017-03-30 21:35:36 -04:00
James McCoy
d92add8a4b
third-party: Bump msgpack-c to 2.1.1
2017-03-30 21:35:29 -04:00
Matthew Malcomson
3a9dd13f9e
fold.c: more edge-cases when updating ( #6207 )
...
When foldUpdateIEMSRecurse() re-uses an existing fold, it misses the
case where the existing fold spans from before startlnum to after
firstlnum, the new fold does not span this range, and there is no
"forced start" of a fold. We add a case for this in.
Ensure that if there was no forced break in folds, we merge folds that
now touch each other.
Include testing for a tricky foldmethod=expr case that has never been a
bug. This case works at the moment because of some effects that are not
obvious when reading the code.
A test for this could be useful to ensure a regression doesn't happen.
vim-patch:8.0.0408
2017-03-31 01:21:26 +02:00
Michael Ennen
831eb2a9bf
vim-patch:7.4.2104 ( #6332 )
...
Problem: Code duplication when unreferencing a function.
Solution: De-duplicate.
97baee80f0
2017-03-31 01:07:39 +02:00
Jakob Schnitzer
eb0e94f71b
api: {get,set}_option should {get,set} global value of local options ( #6405 )
...
- nvim_get_option should return the global default of a local option.
- nvim_set_option should set the global default of a local option.
2017-03-30 22:03:52 +02:00
Matthew Malcomson
66b336d89b
test: set 'nomore' by default ( #6360 )
...
Escaping from a '-- More --' prompt in tests is awkward as it doesn't
take keys from the typebuffer, requiring a call to `feed()` in lua at
the correct time. Moreover, it's rarer that a test will want the
'-- More --' prompt to be activated than not.
2017-03-30 19:00:34 +02:00
James McCoy
75b98f7c3f
Remove PVS-Studio cruft
...
[ci skip]
2017-03-30 10:09:33 -04:00
Justin M. Keyes
8d13955328
Merge #6395 'test: Use workspace-local temp directory.'
2017-03-30 03:50:17 +02:00
James McCoy
1222c82799
coverity/16127: Verify lang is non-NULL before calling strlen
2017-03-29 21:34:04 -04:00
James McCoy
91dfebf050
ci: Update Coverity model for typval refactoring
...
[ci skip]
2017-03-29 21:16:58 -04:00
James McCoy
1c6ae58fd1
coverity/161194: Restore check for 'keywordprg' being ":help"
...
998d0ffc09
removed the explicit check for
":help", relying instead on whether the user was in a help buffer.
However, this breaks escaping the identifier for use in the lookup
command.
2f54d6927c
tried to fix this by removing
"!kp_ex" in "if (cmdchar == 'K' && !kp_ex)", but that causes shell
escaping to be used instead of escaping for tag lookup.
2017-03-29 21:16:58 -04:00
James McCoy
3116f870ba
coverity/161195: Increase scope of exe_name
...
Since exe_name is a stack allocated array, we need it to be in scope for
the lifetime that vim_path points to it.
2017-03-29 21:16:50 -04:00
Justin M. Keyes
1ea9ebf112
test: Use workspace-local temp directory.
...
Closes #6291
2017-03-30 02:55:00 +02:00
Justin M. Keyes
1f478cebeb
win: tempname(): Use $TMPDIR if defined.
2017-03-30 02:55:00 +02:00
relnod
6964b67c00
refactor/single-include: buffer.h ( #6396 )
2017-03-30 00:50:11 +02:00
Justin M. Keyes
c60e409471
Merge #5119 from ZyX-I/split-eval
2017-03-29 23:15:07 +02:00
Justin M. Keyes
c35420558b
Merge #6394 'ci: check-single-includes only in "lint" build'
2017-03-29 18:44:43 +02:00
Justin M. Keyes
afacda046d
ci: Run check-single-includes in "lint" build only
2017-03-29 18:02:09 +02:00
Justin M. Keyes
05b74399aa
build: remove unused get_preproc_output() call
...
ref https://github.com/neovim/neovim/pull/6375#discussion_r108573471
2017-03-29 17:39:06 +02:00
lonerover
2846d508b2
vim-patch:7.4.2276 ( #6393 )
...
* vim-patch:7.4.2276
Problem: Command line test fails on Windows when run twice.
Solution: Wipe the buffer so that the directory can be deleted.
1773ddfdcd
* version.c: mark vim-patch 7.4.2269 as included (#5659 )
2017-03-29 16:48:50 +02:00
ZyX
46efe14473
functests: Try sleeping a bit more
2017-03-29 10:08:46 +03:00
ZyX
b9603218be
eval/executor: Fix check-single-includes
2017-03-29 10:08:46 +03:00
ZyX
a1d590a08b
*: Use const char * in set_one_cmd_context
...
Also renames functions added in master and renamed here.
2017-03-29 10:08:46 +03:00
ZyX
114eaa15f0
eval/typval,api/buffer: Fix review comments
2017-03-29 10:08:46 +03:00
ZyX
58e34e8d99
eval/typval: Allow NULL dict as tv_dict_get_callback() argument
...
Also removes NULL key input: tv_dict_find() does not allow this.
2017-03-29 10:08:46 +03:00
ZyX
f4256243db
eval: Fix -Werror=unitialized from QB
2017-03-29 10:08:46 +03:00
ZyX
29bad04f9e
eval: Do not supply S_LEN to strncmp
...
It may be a macro as well.
2017-03-29 10:08:46 +03:00
ZyX
8daf756fb6
unittests: Fix linter errors
2017-03-29 10:08:46 +03:00
ZyX
7826ee1c03
unittests: Add tv_get_string* tests
2017-03-29 10:08:46 +03:00
ZyX
e08b27ba4a
unittests: Add tv_get number tests
2017-03-29 10:08:46 +03:00
ZyX
4536c064e4
unittests: Move tv_dict_add* tests to a proper describe() block
2017-03-29 10:08:46 +03:00
ZyX
49195063fd
unittests: Add tv_check… tests
2017-03-29 10:08:46 +03:00
ZyX
389274bef7
unittests: Add tv_equal() tests
2017-03-29 10:08:46 +03:00
ZyX
630ff33dc1
unittests: Test locks section
2017-03-29 10:08:46 +03:00
ZyX
ed4948a933
unittests: Test tv_copy()
2017-03-29 10:08:46 +03:00
ZyX
f0bbd1e825
unittests: Add tests for tv_clear()
2017-03-29 10:08:46 +03:00
ZyX
e43de6bb3e
unittests: Add test for tv_dict_set_keys_readonly
2017-03-29 10:08:45 +03:00
ZyX
368a61c525
unittests: Add tv_dict_copy tests
2017-03-29 10:08:45 +03:00
ZyX
218fa1d806
charset: Remove useless condition from vim_iswordc_tab
2017-03-29 10:08:45 +03:00
ZyX
8b9a1fbf7a
unittests: Add tests for tv_dict_extend
2017-03-29 10:08:45 +03:00
ZyX
fa852e7cdc
eval: Fix extend() behaviour with NULL lists and dictionaries
...
Ref #4615
Ref vim/vim#768
2017-03-29 10:08:45 +03:00
ZyX
4987850cac
unittests: Add tv_dict_clear tests
2017-03-29 10:08:45 +03:00
ZyX
43e9fad1c8
eval: Use tv_is_func in place of ==VAR_FUNC||==VAR_PARTIAL
...
Also fixes same error as in vim/vim#1557
2017-03-29 10:08:45 +03:00
ZyX
270a3889af
unittests: Add tv_dict_add* unit tests
...
Also fixes incorrect location of `tv_dict_add` function and three bugs in other
functions:
1. `tv_dict_add_list` may free list it does not own (vim/vim#1555 ).
2. `tv_dict_add_dict` may free dictionary it does not own (vim/vim#1555 ).
3. `tv_dict_add_dict` ignores `key_len` argument.
2017-03-29 10:08:45 +03:00
ZyX
bc87d23c28
unittests: Add tests for dictionary indexing
2017-03-29 10:08:45 +03:00
ZyX
b222453c95
eval/typval: Refactor errors a bit: use emsgf always
2017-03-29 10:08:45 +03:00
ZyX
5ce6243241
unittests: Enable tv_list_join tests back
...
Unable to reproduce the problem on Mac OS X Sierra VPS, need to check whether it
is reproducible on travis.
2017-03-29 10:08:45 +03:00
ZyX
52e226ff74
unittests: Disable tv_list_join test on Mac OS only
2017-03-29 10:08:45 +03:00
ZyX
f830243ff7
mbyte: Include os_defs.h in mbyte.h
2017-03-29 10:08:45 +03:00
ZyX
3bf87a5a6b
eval: Do not use S_LEN as snprintf argument
2017-03-29 10:08:45 +03:00