aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* | | | | | lint #7562Sewoong Park2017-11-17
| | | | | |
* | | | | | defaults: scrollback=10000 (#7556)Justin M. Keyes2017-11-14
| | | | | |
* | | | | | vim-patch:8.0.0227 (#7548)Justin M. Keyes2017-11-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Crash when 'fileformat' is forced to "dos" and the first line in the file is empty and does not have a CR character. Solution: Don't check for CR before the start of the buffer. https://github.com/vim/vim/commit/2aa5f696b91a51f29873e340de4bdc182e1e8dd4
* | | | | | Merge pull request #7545 from jamessan/test-fixesJames McCoy2017-11-12
|\ \ \ \ \ \ | | | | | | | | | | | | | | Fix test failures found in Debian builds, closes #7522
| * | | | | | Use PRId64 to format Integer when calling api_set_errorJames McCoy2017-11-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Integer is a 64-bit type so using %d can produce incorrect results. test/functional/api/highlight_spec.lua @ 35: highlight api nvim_get_hl_by_id ...W7Xi/neovim-0.2.1/test/functional/api/highlight_spec.lua:46: Expected objects to be the same. Passed in: (string) 'Invalid highlight id: 7671724' Expected: (string) 'Invalid highlight id: 30000'
* | | | | | | :terminal : fix crash on resize (#7547)Justin M. Keyes2017-11-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | closes #7538 Fix wrong window references from #7440 Remove some eager resizing. Still mostly doesn't address #4997.
* | | | | | | Merge #7530 'vim-patch:8.0.0226 vim-patch:8.0.0224'Justin M. Keyes2017-11-13
|\ \ \ \ \ \ \
| * | | | | | | fix lint errorckelsel2017-11-11
| | | | | | | |
| * | | | | | | vim-patch:8.0.0226ckelsel2017-11-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: The test for patch 8.0.0224 misses the CR characters and passes even without the fix. (Christian Brabandt) Solution: Use double quotes and \<CR>. https://github.com/vim/vim/commit/1695f99d08076d77ed3015f1edf09a668a4d449a
| * | | | | | | vim-patch:8.0.0224ckelsel2017-11-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: When 'fileformats' is changed in a BufReadPre auto command, it does not take effect in readfile(). (Gary Johnson) Solution: Check the value of 'fileformats' after executing auto commands. (Christian Brabandt) https://github.com/vim/vim/commit/7a2699e868bca781e26b060a44fc714d87cfa4ba
* | | | | | | | vim-patch: NAKunMing Xie2017-11-12
| |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * vim-patch:8.0.0245 Problem: The generated zh_CN.cp936.po message file is not encoded properly. Solution: Instead of using zh_CN.po as input, use zh_CN.UTF-8.po. https://github.com/vim/vim/commit/16038d50c4309e8dee33c70ca2c9e7f73439c4df * vim-patch:8.0.0248 Problem: vim_strcat() cannot handle overlapping arguments. Solution: Use mch_memmove() instead of strcpy(). (Justin M Keyes, closes vim/vim#1415) https://github.com/vim/vim/commit/45600ce8f2bead069882032f992623cd5a799ca0
* | | | | | | process_close(): uv_unref() detached processes (#7539)Justin M. Keyes2017-11-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Doc for UV_PROCESS_DETACHED in uv.h mentions: > child process will still keep the parent's event loop alive unless > the parent process calls uv_unref() on the child's process handle. ref #3944
* | | | | | | vim-patch:8.0.0237 (#7531)KunMing Xie2017-11-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: When setting wildoptions=tagfile the completion context is not set correctly. (desjardins) Solution: Check for EXPAND_TAGS_LISTFILES. (Christian Brabandt, closes vim/vim#1399) https://github.com/vim/vim/commit/ba47b51ff88d91c9bb5aa522183e23a656865697
* | | | | | | vim-patch:8.0.0242 (#7532)KunMing Xie2017-11-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Completion of user defined functions is not covered by tests. Solution: Add tests. Also test various errors of user-defined commands. (Dominique Pelle, closes vim/vim#1413) https://github.com/vim/vim/commit/65c836e6004647196ae0bc18e409a9e7b79207c0
* | | | | | | vim-patch:8.0.0218 (#7529)KunMing Xie2017-11-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: No command line completion for :cexpr, :cgetexpr, :caddexpr, etc. Solution: Make completion work. (Yegappan Lakshmanan) Add a test. https://github.com/vim/vim/commit/2b2207ba69c6b009e466a36eef0644ca723e16d3
* | | | | | | :checkhealth : validate 'runtimepath' (#7526)Justin M. Keyes2017-11-10
|/ / / / / /
* | | | | | test/oldtest: `count` is not special in Nvim #7407Justin M. Keyes2017-11-09
| | | | | |
* | | | | | compat: "v:count" distinct from "count" (#7407)Marco Hinz2017-11-09
| | | | | |
* | | | | | Merge #7465 has('ttyin'), has('ttyout')Justin M. Keyes2017-11-08
|\ \ \ \ \ \
| * | | | | | vim-patch:8.0.0096: has('ttyin'), has('ttyout')Justin M. Keyes2017-11-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Nvim note: intentionally did not include `--ttyfail` since its purpose is not clear. (And it isn't used in any Vim test files/scripts). --- Problem: When the input or output is not a tty Vim appears to hang. Solution: Add the --ttyfail argument. Also add the "ttyin" and "ttyout" features to be able to check in Vim script. https://github.com/vim/vim/commit/2cab0e191055a8145ccd46cd52869fbb9798b971
* | | | | | | vim-patch:b0d45e7f5354Justin M. Keyes2017-11-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update runtime files. https://github.com/vim/vim/commit/b0d45e7f5354375edd02afafde3bd37dac1515ff
* | | | | | | vim-patch:01164a6546b4Justin M. Keyes2017-11-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Long overdue runtime update. https://github.com/vim/vim/commit/01164a6546b4c635daf96a1f17d1cb2d07f32a66
* | | | | | | vim-patch:24a98a0eb772Justin M. Keyes2017-11-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update runtime files https://github.com/vim/vim/commit/24a98a0eb77245adc50facad8b735b20bfd31a7e
* | | | | | | Merge #7500 'vim-patch: runtime'Justin M. Keyes2017-11-07
|\ \ \ \ \ \ \
| * | | | | | | vim-patch:f55e4c867f77Justin M. Keyes2017-11-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updated runtime files https://github.com/vim/vim/commit/f55e4c867f774d1f27973d06b07b97c0a4d6b968
| * | | | | | | vim-patch:bf92e3a3719fJustin M. Keyes2017-11-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update translations. https://github.com/vim/vim/commit/bf92e3a3719f255dbb30102ceb618e0eac7c9497
* | | | | | | | ui: remove ext_cmdline noise (#7486)Björn Linse2017-11-07
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only send cmdline contents once per ui_flush. Don't send extra redraws due to 'arshape', it makes no difference to external ui.
* | | | | | | po: remove duplicate definitionsJustin M. Keyes2017-11-07
| | | | | | |
* | | | | | | vim-patch:74675a666b51Justin M. Keyes2017-11-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updated runtime files and translations. https://github.com/vim/vim/commit/74675a666b51edd61e0210132658d81a86c5102c
* | | | | | | vim-patch:3ec574f2b549Justin M. Keyes2017-11-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update runtime files. Includes changing &sw to shiftwidth() for all indent scripts. https://github.com/vim/vim/commit/3ec574f2b549f456f664f689d6da36dc5719aeb9
* | | | | | | vim-patch:6aa8cea46d41Justin M. Keyes2017-11-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update runtime files. https://github.com/vim/vim/commit/6aa8cea46d4179b2617daae034063dd0d8054e35
* | | | | | | doc: deprecate 'highlight'; remove howto.txt (#7497)Justin M. Keyes2017-11-07
| |_|_|_|_|/ |/| | | | |
* | | | | | 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>
* | | | | | doc: API (generated)Justin 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
* | | | | Merge #7454 'ui: ext_wildmenu'Justin M. Keyes2017-10-31
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | closes #6168 ref #5686
| * | | | | 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
| * | | | | | Remove superflous parameter from show_subKillTheMule2017-10-29
| | | | | | |
| * | | | | | Fix highlighting conflictKillTheMule2017-10-29
| | | | | | |
| * | | | | | Clear highlight when there's no matchKillTheMule2017-10-29
| | | | | | |
| * | | | | | 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.
| * | | | | | LintKillTheMule2017-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));
* | | | | | 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