aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* | | | | unittests,syntax: Check for sanity of highlight_init_cmdlineZyX2017-11-13
| | | | | | | | | | | | | | | | | | | | Also fixes some errors found.
* | | | | unittests: Add some more edge test casesZyX2017-11-12
| | | | |
* | | | | viml/parser/expressions: Add support for parsing assignmentsZyX2017-11-12
| | | | |
* | | | | viml/parser/expressions: Replace lambda-specific WantedNode entriesZyX2017-11-12
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | unittests: Add a way to show some custom messages only when crashedZyX2017-11-11
| | | | |
* | | | | *: Fix linter errorsZyX2017-11-06
| | | | |
* | | | | Merge branch 'master' into expression-parserZyX2017-11-06
|\| | | |
| * | | | Merge #7491 'vim-patch: runtime'Justin M. Keyes2017-11-06
| |\ \ \ \
| | * | | | vim-patch:036986f1507dJustin M. Keyes2017-11-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update runtime files. https://github.com/vim/vim/commit/036986f1507d223549d110af300144468bd3a1f7
| | * | | | vim-patch:214641f77df6Justin M. Keyes2017-11-06
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Runtime file updates. https://github.com/vim/vim/commit/214641f77df6f318a4b3a0b09723c19859a103f4 N/A: vim-patch:26a280c47a1c
| * | | | eval/decode.c: Avoid NULL arg to memchr() #7332Adrian Neumann2017-11-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | | Merge #7188 from justinmk/docJustin M. Keyes2017-11-06
| |\ \ \ \ | | | | | | | | | | | | doc; minor runtime bug fixes
| | * | | | doc: API (generated)Justin M. Keyes2017-11-06
| | | | | |
| | * | | | gen_api_vimdoc.py: workaround: attributes of (void) functionsJustin M. Keyes2017-11-06
| | | | | |
| | * | | | gen_api_vimdoc.py: support Doxygen @noteJustin M. Keyes2017-11-06
| | | | | |
| | * | | | doc: job-controlJustin M. Keyes2017-11-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | closes #4266 closes #4746 ref https://github.com/neovim/neovim/issues/7058#issuecomment-317196803
| | * | | | man.vim: allow other ex-commands after :ManJustin M. Keyes2017-11-06
| | | | | |
| | * | | | spellfile.vim: use :keeppatterns before :globalJustin M. Keyes2017-11-06
| | | | | |
| | * | | | doc: nvim_buf_add_highlight(): zero-indexed linesJustin M. Keyes2017-11-06
| | | | | |
| | * | | | docJustin M. Keyes2017-11-06
| |/ / / /
| * | | | 'inccommand': Fix matches for zero-width (#7487)KillTheMule2017-11-05
| | | | | | | | | | | | | | | closes #7485
| * | | | docs: correct cmdline_special_char documentation (#7475)Björn Linse2017-11-03
| |/ / /
| * | | test: server_spec: Tolerate missing protocol (#7478)James McCoy2017-11-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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().
| * | | win/package: nvim-qt v0.2.8 (#7464)Justin M. Keyes2017-10-31
| | | |
| * | | Merge #7454 'ui: ext_wildmenu'Justin M. Keyes2017-10-31
| |\ \ \ | | | | | | | | | | | | | | | | | | | | closes #6168 ref #5686
| | * | | doc: ui.txtBjörn Linse2017-10-29
| | | | |
| | * | | ui: allow external ui to draw wildmenuDongdong Zhou2017-10-29
| | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Björn Linse <bjorn.linse@gmail.com> Updated docs and tests.
| * | | | Merge #7315 "'inccommand': multiline, other fixes"Justin M. Keyes2017-10-31
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | closes #5589 closes #5590 closes #5598 closes #5608
| | * | | | Fix cmd modifier tests for the new highlightKillTheMule2017-10-29
| | | | | |
| | * | | | Remove superflous parameter from show_subKillTheMule2017-10-29
| | | | | |
| | * | | | Adjust tests for new highlighting.KillTheMule2017-10-29
| | | | | | | | | | | | | | | | | | | | | | | | Also extend an old test to show of the new way.
| | * | | | Fix highlighting conflictKillTheMule2017-10-29
| | | | | |
| | * | | | Test for clearing the highlightKillTheMule2017-10-29
| | | | | |
| | * | | | Clear highlight when there's no matchKillTheMule2017-10-29
| | | | | |
| | * | | | Adjust tests for the new preview windowKillTheMule2017-10-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... that does not have that superflous last line. Also, remove some indeterminism for the freebsd64 tests. Partially, those were suggested by the tests themselves, while successfull. Some of them were added after some testing because the lookaround test would fail on freebsd64 only.
| | * | | | Fix the last line in the preview bufferKillTheMule2017-10-29
| | | | | | | | | | | | | | | | | | | | | | | | It would always show an empty line at the end that didn't belong.
| | * | | | Remove pat/sub from show_subKillTheMule2017-10-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | They were only used to not show the preview window when typing "s/" or "s//" only, in which case the previous pattern would be reused. Now the window is shown in that case.
| | * | | | Move tests into original file, lint, and add a testKillTheMule2017-10-29
| | | | | |
| | * | | | LintKillTheMule2017-10-29
| | | | | |
| | * | | | Fix old inccomand tests, and add more for the new functionality.KillTheMule2017-10-29
| | | | | |
| | * | | | Inccommand: Multiline substitutions, highlighting, multibyte.KillTheMule2017-10-29
| | | |/ / | | |/| | | | | | | | | | | | | | | | | Make inccomand work with multiline patterns and substitutions. Also care for proper highlighting and multibyte characters.
| * | | | pvs/V575: false positive (#7462)Justin M. Keyes2017-10-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ./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));
| * | | | Merge #7456 from justinmk/vim-8.0.1207Justin M. Keyes2017-10-30
| |\ \ \ \ | | |/ / / | |/| | |
| | * | | eval_clear: free profile dataJustin M. Keyes2017-10-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * | | vim-patch:8.0.1207Justin M. Keyes2017-10-29
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Profiling skips the first and last script line. Solution: Check for BOM after setting script ID. (Lemonboy, closes vim/vim#2103, closes vim/vim#2112) Add a test. List the trailing script lines. https://github.com/vim/vim/commit/67435d9983965c5c77fc74f0559779ce4554dacb
* | | | *: Fix some typos found by oni-linkZyX2017-11-06
| | | |
* | | | unittests: Add tests for vim_str2nrZyX2017-11-06
| | | |
* | | | charset: Move vim_str2nr flags from vim.h to charset.hZyX2017-11-06
| | | |
* | | | viml/parser/expressions: Briefly document some differencesZyX2017-11-06
| | | |
* | | | api/vim: Add “len” dictionary keyZyX2017-11-06
| | | | | | | | | | | | | | | | | | | | This allows determining where parsing ended which may be needed for e.g. parsing `:echo` with that API function.