ZyX
ebb33eddd9
tests: Stabilize float format and %e in format_luav and format_string
2017-11-19 22:00:59 +03:00
ZyX
731dc82f8c
ex_getln: Fix memory leak in color_expr_cmdline
2017-11-19 21:21:45 +03:00
ZyX
f20f97c936
*: Fix linter errors
2017-11-19 21:13:27 +03:00
ZyX
a94255a7ac
tests: Use single test file for unit and functional parser tests
2017-11-19 20:20:06 +03:00
ZyX
53fa435a1f
functests: Fix ui/cmdline test
2017-11-19 19:34:15 +03:00
ZyX
764cf3251d
charset: Add missing include needed for vim_str2nr
2017-11-19 19:27:21 +03:00
ZyX
c287893225
viml/parser/expressions,unittests: Do better testing, fix found issues
2017-11-19 19:22:54 +03:00
ZyX
342239a9c5
unittests,viml/parser/expressions: Start adding asgn parsing tests
2017-11-13 01:11:13 +03:00
ZyX
39c75d31be
unittests: Fix automatic test case generation
2017-11-13 01:11:13 +03:00
ZyX
556451a7f2
unittests,syntax: Check for sanity of highlight_init_cmdline
...
Also fixes some errors found.
2017-11-13 01:11:13 +03:00
ZyX
45445e2e03
unittests: Add some more edge test cases
2017-11-12 03:52:26 +03:00
ZyX
c7495ebcc0
viml/parser/expressions: Add support for parsing assignments
2017-11-12 02:18:43 +03:00
ZyX
1aa6276c29
viml/parser/expressions: Replace lambda-specific WantedNode entries
...
This way code will be easier to adapt to handling (partially) non-expressions
like :let lvalue part or :function definitions, and that would be needed in the
future both for proper completion support and for the Ex commands parser.
2017-11-12 00:03:45 +03:00
ZyX
bbb21e5dd3
unittests: Add a way to show some custom messages only when crashed
2017-11-11 23:50:37 +03:00
ZyX
4aebd00a9e
*: Fix linter errors
2017-11-06 20:28:37 +03:00
ZyX
24a353364d
Merge branch 'master' into expression-parser
2017-11-06 20:23:35 +03:00
ZyX
f2660bee6a
*: Fix some typos found by oni-link
2017-11-06 20:20:31 +03:00
ZyX
42959d0e8f
unittests: Add tests for vim_str2nr
2017-11-06 20:15:05 +03:00
ZyX
c85f485aa7
charset: Move vim_str2nr flags from vim.h to charset.h
2017-11-06 19:06:24 +03:00
Justin M. Keyes
946c2a8ee8
Merge #7491 'vim-patch: runtime'
2017-11-06 11:22:55 +01:00
Justin M. Keyes
c348f84f21
vim-patch:036986f1507d
...
Update runtime files.
036986f150
2017-11-06 05:35:32 +01:00
Justin M. Keyes
93fb7383a3
vim-patch:214641f77df6
...
Runtime file updates.
214641f77d
N/A:
vim-patch:26a280c47a1c
2017-11-06 05:26:16 +01:00
Adrian Neumann
8f03014e88
eval/decode.c: Avoid NULL arg to memchr() #7332
...
Clang complains because memchr has undefined behavior if the ptr is
NULL, even if len==0.
Helped-by: Nikolai Aleksandrovich Pavlov <kp-pav@yandex.ru>
2017-11-06 05:00:58 +01:00
Justin M. Keyes
d31b94ac20
Merge #7188 from justinmk/doc
...
doc; minor runtime bug fixes
2017-11-06 05:04:37 +01:00
Justin M. Keyes
280943d9b9
doc: API (generated)
2017-11-06 04:51:34 +01:00
Justin M. Keyes
7e59b897c1
gen_api_vimdoc.py: workaround: attributes of (void) functions
2017-11-06 04:27:31 +01:00
Justin M. Keyes
7984959ef5
gen_api_vimdoc.py: support Doxygen @note
2017-11-06 04:16:07 +01:00
Justin M. Keyes
fb3c21e090
doc: job-control
...
closes #4266
closes #4746
ref https://github.com/neovim/neovim/issues/7058#issuecomment-317196803
2017-11-06 01:56:04 +01:00
Justin M. Keyes
5d2af7e452
man.vim: allow other ex-commands after :Man
2017-11-06 01:56:04 +01:00
Justin M. Keyes
8cb77acb44
spellfile.vim: use :keeppatterns before :global
2017-11-06 01:56:04 +01:00
Justin M. Keyes
73fabf4f15
doc: nvim_buf_add_highlight(): zero-indexed lines
2017-11-06 01:56:04 +01:00
Justin M. Keyes
842a54a1bb
doc
2017-11-06 01:56:04 +01:00
ZyX
05f775b5f2
viml/parser/expressions: Briefly document some differences
2017-11-06 01:57:22 +03:00
ZyX
ebb5977837
api/vim: Add “len” dictionary key
...
This allows determining where parsing ended which may be needed for e.g. parsing
`:echo` with that API function.
2017-11-06 01:17:39 +03:00
ZyX
7849070f99
tests: Add missing test cases
2017-11-06 01:17:39 +03:00
ZyX
7bc6de7526
api/vim,functests: Add tests for nvim_parse_expression, fix found bugs
2017-11-06 01:17:39 +03:00
ZyX
07ec709141
vim/api: Actually dump AST, fix some bugs in nvim_parse_expression
2017-11-06 01:17:38 +03:00
ZyX
b9d5aea073
api/vim: Create part of nvim_parse_expression function
2017-11-06 01:17:38 +03:00
ZyX
d98199de9c
charset: Refactor vim_str2nr
2017-11-06 01:17:38 +03:00
ZyX
3ecb95298f
tests: Fix testlint errors
2017-11-06 01:17:37 +03:00
KillTheMule
04b3c32772
'inccommand': Fix matches for zero-width ( #7487 )
...
closes #7485
2017-11-05 17:11:44 +01:00
Björn Linse
739bc5124a
docs: correct cmdline_special_char documentation ( #7475 )
2017-11-03 09:34:31 +01:00
James McCoy
a39c8b7ce3
test: server_spec: Tolerate missing protocol ( #7478 )
...
Travis disabled IPv6:
[ RUN ] serverstart(), serverstop() parses endpoints correctly: FAIL
...build/neovim/neovim/test/functional/eval/server_spec.lua:83: Expected objects to be the same.
Passed in:
(table) {
[1] = '127.0.0.1:12345' }
Expected:
(table) {
[1] = '127.0.0.1:12345'
*[2] = '::1:12345' }
Change all tests to ensure a server was actually started before
expecting it to be returned from serverlist().
2017-11-02 10:45:38 +01:00
Justin M. Keyes
54b79f19d7
win/package: nvim-qt v0.2.8 ( #7464 )
2017-10-31 12:53:07 +01:00
Justin M. Keyes
b67f58b284
Merge #7454 'ui: ext_wildmenu'
...
closes #6168
ref #5686
2017-10-31 10:45:06 +01:00
Justin M. Keyes
60b1e8ad12
Merge #7315 "'inccommand': multiline, other fixes"
...
closes #5589
closes #5590
closes #5598
closes #5608
2017-10-31 01:11:35 +01:00
Justin M. Keyes
241fe704a5
pvs/V575: false positive ( #7462 )
...
./src/nvim/ex_getln.c:2787:1: error: V575 The 'memcpy' function doesn't
copy the whole string. Use 'strcpy / strcpy_s' function to preserve
terminal null.
We could instead "trick" PVS like this:
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index e79476ab532a..295630693b27 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -2782,9 +2782,10 @@ static void ui_ext_cmdline_show(CmdlineInfo *line)
void ui_ext_cmdline_block_append(int indent, const char *line)
{
- char *buf = xmallocz(indent + strlen(line));
+ size_t linelen = strlen(line);
+ char *buf = xmallocz(indent + linelen);
memset(buf, ' ', indent);
- memcpy(buf+indent, line, strlen(line));
+ memcpy(buf + indent, line, linelen);
Array item = ARRAY_DICT_INIT;
ADD(item, DICTIONARY_OBJ((Dictionary)ARRAY_DICT_INIT));
2017-10-30 23:29:47 +01:00
Justin M. Keyes
efa9152852
Merge #7456 from justinmk/vim-8.0.1207
2017-10-30 09:49:50 +01:00
Justin M. Keyes
cc7285823c
eval_clear: free profile data
...
Memory leak exposed by new test added in #7444 .
==38771==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 2400 byte(s) in 1 object(s) allocated from:
0 0x51163d in realloc (/home/travis/build/neovim/neovim/build/bin/nvim+0x51163d)
1 0xfda51c in xrealloc /home/travis/build/neovim/neovim/src/nvim/memory.c:169:15
2 0xda6802 in ga_grow /home/travis/build/neovim/neovim/src/nvim/garray.c:98:14
3 0xb67ccd in script_line_start /home/travis/build/neovim/neovim/src/nvim/ex_cmds2.c:3286:11
4 0xb62885 in getsourceline /home/travis/build/neovim/neovim/src/nvim/ex_cmds2.c:3110:5
5 0xb5fbfd in do_source /home/travis/build/neovim/neovim/src/nvim/ex_cmds2.c:2951:15
6 0xb5c484 in cmd_source /home/travis/build/neovim/neovim/src/nvim/ex_cmds2.c:2710:14
7 0xb5c5b0 in ex_source /home/travis/build/neovim/neovim/src/nvim/ex_cmds2.c:2691:3
8 0xb950b9 in do_one_cmd /home/travis/build/neovim/neovim/src/nvim/ex_docmd.c:2242:5
9 0xb737e1 in do_cmdline /home/travis/build/neovim/neovim/src/nvim/ex_docmd.c:609:20
10 0xb79ac5 in do_cmdline_cmd /home/travis/build/neovim/neovim/src/nvim/ex_docmd.c:280:10
11 0xed8a7b in exe_commands /home/travis/build/neovim/neovim/src/nvim/main.c:1684:5
12 0xec6602 in main /home/travis/build/neovim/neovim/src/nvim/main.c:521:5
13 0x2ae968600f44 in __libc_start_main /build/eglibc-SvCtMH/eglibc-2.19/csu/libc-start.c:287
2017-10-30 08:37:59 +01:00
ZyX
0356dbbb36
ex_getln: Fix variable name which is wrong after the merge
2017-10-30 01:38:02 +03:00