Paul Jolly
d835c030f2
remote/define.vim: support remote function "range"
2016-04-18 05:24:46 -04:00
Justin M. Keyes
8d12e28d94
Merge pull request #4018 from justinmk/vim-35e7594
...
vim-patch:35e7594
2016-04-18 04:02:00 -04:00
Justin M. Keyes
05baf936c0
vim-patch.sh: recognize malformed patches.
...
vim-patch:fc39ecf (committed in aae7e8b
)
vim-patch:541f92d (committed in cc52060
)
vim-patch:88774fd (committed in 896f548
)
This commit message forces vim-patch.sh to recognize these patches
which were committed with only 6 chars (vim-patch.sh requires 7).
2016-04-18 03:00:50 -04:00
Justin M. Keyes
8a14750dd3
test: convert test_marks.in.
...
vim-patch:35e7594
35e7594dd4
"Add missing test files from 7.4.634 to the repository."
The discrepancy between the expected getpos() result of the old test
[0, 15, 2, 0] and the converted test [0, 3, 2, 0] is just a matter of how
the buffer is constructed: in the old Vim test the buffer has a bunch of
junk at the top.
The central purpose of the test is to verify that the getpost("'a") does
*not* return [0, 0, 0, 0].
2016-04-18 03:00:43 -04:00
Justin M. Keyes
28b9a2864a
Merge pull request #4590 from Streetwalrus/issue4471
...
rplugin: Don't chain events.
2016-04-18 02:28:58 -04:00
Dan Elkouby
e5147ce6a0
rplugin: Ignore modeline while chaining events
2016-04-18 09:21:22 +03:00
Justin M. Keyes
40cc5ba0e2
Merge pull request #4595 from dbarnett/vim-fc39ec
...
vim-patch:fc39ec (runtime/filetype.vim changes)
2016-04-18 01:54:45 -04:00
David Barnett
946807898b
vim-patch:fc39ec (runtime/filetype.vim)
...
Update runtime files.
fc39ecf8de
Add remaining runtime/filetype.vim changes that were missing in 289588.
2016-04-17 22:49:49 -07:00
ZyX
191fb638f4
*: Fix linter errors
2016-04-18 03:37:24 +03:00
ZyX
fdb68e35e4
ex_getln: Make get_histtype return HIST_DEFAULT if needed
2016-04-18 03:37:23 +03:00
Justin M. Keyes
ca280c28b4
Merge pull request #4594 from dbarnett/vim-88774f
...
vim-patch:88774f
2016-04-17 20:34:49 -04:00
Justin M. Keyes
007d573147
Merge pull request #4131 from ZyX-I/json-functions
...
Add JSON support
2016-04-17 20:24:23 -04:00
David Barnett
896f548eee
vim-patch:88774f
...
Updated runtime files and Italian messages.
88774fdd23
2016-04-17 17:19:00 -07:00
Charles Joachim
a3dfd1627e
misc1.c: enable -Wconversion
2016-04-17 20:15:40 -04:00
ZyX
a64114eba0
functests: Make json_functions_spec use new NIL where appropriate
2016-04-18 02:48:20 +03:00
ZyX
28275fe5c3
*: Fix preincrement lint errors
2016-04-18 02:48:20 +03:00
ZyX
45304b482c
eval/encode: Simplify loop in encode_list_write
...
Patch made up by oni-link.
2016-04-18 02:48:20 +03:00
ZyX
bda0165514
eval/encode: Make sure that encoder can encode NULL variables
...
Adds two undocumented v: variables: _null_list and _null_dict because I do not
know a reproducible way to get such lists (though I think I heard about this)
and dictionaries (do not remember hearing about them). NULL strings are obtained
using $XXX_UNEXISTENT_VAR_XXX.
Fixes crash in json_encode($XXX_UNEXISTENT_VAR_XXX). Other added tests worked
fine before this commit.
2016-04-18 02:48:20 +03:00
ZyX
c4f1b5a938
eval/encode: Adjust buffer sizes passed to vim_snprintf
2016-04-18 02:48:20 +03:00
ZyX
3e435df42c
functests: Replace \xXX escapes with \DDD in lua code
2016-04-18 02:48:20 +03:00
ZyX
fd92e648ac
eval/encode: Dump FF character correctly
2016-04-18 02:48:20 +03:00
ZyX
494b1c9bee
*: Make set_vim_var_\* functions have proper argument types
2016-04-18 02:48:20 +03:00
ZyX
9af400f979
eval: Treat [] and [""] as any other empty string
2016-04-18 02:48:20 +03:00
ZyX
af7ff808c7
eval: Fix overflow in error message in f_json_decode
2016-04-18 02:48:20 +03:00
ZyX
9709cf2cdb
documentation: Update assert_{false,true}() and empty() documentation
...
Also removes a note regarding the performance of `empty(long_list)` vs
`len(long_list) == 0` because this has nothing to do with the actual state:
first checks that list is not NULL and pointer to its first element is also not
NULL, second gets length by comparing list with NULL and falls back to
`tv->vval.v_list->lv_len` if not. `len(long_list)` *may* still be *slightly*
slower, but the slow down has nothing to do with the length of the list, is
hardly noticeable and depends on how good compiler is at inlining and what
exactly have author of the plugin written (I mean `len(long_list) == 0` vs
`empty(long_list)` vs `!len(long_list)`).
2016-04-18 02:48:20 +03:00
ZyX
25bb08dad9
api: Add warnings about the returned value to \*del_var functions
2016-04-18 02:48:20 +03:00
ZyX
4f8b686435
documentation,functests: State that UTF-8-only support is intentional
2016-04-18 02:48:20 +03:00
ZyX
c129f6cfaf
eval/decode: Accept \r
as space character
2016-04-18 02:48:20 +03:00
ZyX
d06c2a1b18
eval/decode: Do not overflow when parsing -
...
Also makes if’s less nested.
2016-04-18 02:48:20 +03:00
ZyX
2b0d46195b
eval/decode: Clarify meaning of some pointer arguments
2016-04-18 02:48:20 +03:00
ZyX
0c598774d8
eval/decode: Fix typo in internal error message
2016-04-18 02:48:20 +03:00
ZyX
515fea1ef0
eval/decode: Reject even more numbers
...
Rejects leading zeroes and numbers like 1.e+5 (decimal dot with missing number
with signed exponent).
2016-04-18 02:48:20 +03:00
ZyX
69ce17878e
*: Fix linter errors
2016-04-18 02:48:20 +03:00
ZyX
1bada1fde0
documentation: Update type() documentation
2016-04-18 02:48:20 +03:00
ZyX
82f249f829
message: Remove useless emsg* functions, leaving only emsgf
2016-04-18 02:48:20 +03:00
ZyX
9a56fcb2e8
eval/decode: Rewrite json_decode_string end as suggested by oni-link
2016-04-18 02:48:20 +03:00
ZyX
9c543f2e24
eval/decode: Reject more numbers, accept 1e5
2016-04-18 02:48:20 +03:00
ZyX
032ac502ff
eval/decode: Do not loose high surrogates followed by high surrogates
2016-04-18 02:48:20 +03:00
ZyX
eb806c9620
eval/decode: Make sure that error messages do not cause overflow
2016-04-18 02:48:20 +03:00
ZyX
52c6cc2189
eval/decode: Make sure that parsing strings does not overflow
2016-04-18 02:48:20 +03:00
ZyX
224d7df630
eval/decode: Make sure that blank input does not crash Neovim
2016-04-18 02:48:20 +03:00
ZyX
394830631f
eval/decode: Make sure that U+00C3 is parsed correctly
2016-04-18 02:48:20 +03:00
ZyX
b725f6b428
functests: Make sure that json functions are tested with C messages
2016-04-18 02:48:20 +03:00
ZyX
4eb5d05f01
eval/decode: Avoid overflow when parsing incomplete null/true/false
...
Note: second test does not crash or produce asan errors, even though it should.
2016-04-18 02:48:20 +03:00
ZyX
4a29995fe7
eval/decode: Rename brackets in error messages
...
U+007D is officially RIGHT CURLY BRACKET.
U+005D is officially RIGHT SQUARE BRACKET.
2016-04-18 02:48:20 +03:00
ZyX
1fc84ae2cd
eval/decode: Record that obj
may be freed
2016-04-18 02:48:20 +03:00
ZyX
4ff5d6e41c
eval/decode: Also use VAR_UNLOCKED in old code
2016-04-18 02:48:20 +03:00
ZyX
54cc6d8025
eval: Remove assert expression
...
GCC on travis thinks that
1. It is not constant.
2. Left-hand operand of comma has no effect (-Werror=unused-variable).
2016-04-18 02:48:20 +03:00
ZyX
6a35f2ac8b
eval: Do not break when VimVarIndex and vimvars order mismatches
...
Also makes sure that compiler will error out when new name is longer then
vv_filler.
2016-04-18 02:48:20 +03:00
ZyX
942e0b338c
encode: Handle incomplete surrogates like \uSURR\uOTHR
properly
2016-04-18 02:48:20 +03:00