aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval
Commit message (Collapse)AuthorAge
...
* vim-patch:8.1.0805: too many #ifdefsJan Edmund Lazo2020-11-12
| | | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, part 1. https://github.com/vim/vim/commit/135059724f140ceac889c9f8136bd1bf5c41d49d
* Removed restricted mode - Fix #11972georg3tom2020-11-11
|
* gcc/analyzer: fix false positives for NULL (#13248)Jan Edmund Lazo2020-11-08
| | | Close https://github.com/neovim/neovim/issues/13158
* vim-patch:8.2.1961: various comments can be improvedJan Edmund Lazo2020-11-06
| | | | | | Problem: Various comments can be improved. Solution: Various comment adjustments. https://github.com/vim/vim/commit/22286895fce0e45e42126c7f2e35ebf43bc625d9
* vim-patch:8.1.0268: file type checking has too many #ifdef (#13182)tamago3242020-11-06
| | | | | Problem: File type checking has too many #ifdef. Solution: Always define the S_IF macros. (Ken Takata, closes vim/vim#3306) https://github.com/vim/vim/commit/d569bb029983cff947dce704e6f830276204c13f
* vim-patch:8.2.1747: result of expand() unexpectedly depends on 'completeslash'skippi2020-10-26
| | | | | | | Problem: Result of expand() unexpectedly depends on 'completeslash'. Solution: Temporarily reset 'completeslash'. (Yasuhiro Matsumoto, closes vim/vim#7021) https://github.com/vim/vim/commit/8f187fc6304222956f94a700758a490cc8c0af99
* vim-patch:8.1.1791: 'completeslash' also applies to globpath()skippi2020-10-26
| | | | | | Problem: 'completeslash' also applies to globpath(). Solution: Add the WILD_IGNORE_COMPLETESLASH flag. (test by Yasuhiro Matsumoto, closes vim/vim#4760)
* vim-patch:8.2.0506: Coverity complains about ignoring return valueJan Edmund Lazo2020-10-25
| | | | | | Problem: Coverity complains about ignoring return value. Solution: Add (void). https://github.com/vim/vim/commit/d1e9dc272355fe3ab112af5f04b0516b2e9a4fa6
* vim-patch:8.2.1102: Coverity gets confused by an unnecessary NULL checkJan Edmund Lazo2020-10-25
| | | | | | Problem: Coverity gets confused by an unnecessary NULL check. Solution: Remove the check for NULL. https://github.com/vim/vim/commit/90049492215aa458b90215b8e0fc50f04d5ad270
* vim-patch:8.2.0268: trycatch test failsJan Edmund Lazo2020-10-21
| | | | | | | Problem: Trycatch test fails. Solution: When calling function fails only check for following command, do not give another error. https://github.com/vim/vim/commit/40d9da2a4395025169ebaf53a63618adfa737e96
* vim-patch:8.1.1056: no eval function for RubyAlex Genco2020-10-21
| | | | | | Problem: No eval function for Ruby. Solution: Add rubyeval(). (Ozaki Kiichi, closes vim/vim#4152) https://github.com/vim/vim/commit/e99be0e6d28fad96efd2b2be23fa38e7559e80e1
* vim-patch:8.2.1804: resolve('/') returns an empty string (#13121)Jan Edmund Lazo2020-10-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: resolve('/') returns an empty string. Solution: Don't remove single slash. (closes vim/vim#7074) https://github.com/vim/vim/commit/50c4e9e08fb0981892e33afb9fe3751aa6df1fa4 Cherry-pick the test rename from Test_resolve() to Test_resolve_unix() from patch 8.1.0894. N/A patches for version.c: vim-patch:8.1.0929: no error when requesting ConPTY but it's not available Problem: No error when requesting ConPTY but it's not available. Solution: Add an error message. (Hirohito Higashi, closes vim/vim#3967) https://github.com/vim/vim/commit/5acd9872580a12ca1138275bf65d1cb9349e2a53 vim-patch:8.1.1535: popup select test fails on Mac Problem: Popup select test fails on Mac. Solution: Skip test if clipboard feature not available. https://github.com/vim/vim/commit/650a63748c349bbb60adb912273e9bedd2b677c5 vim-patch:8.1.1536: popup select test still fails on Mac Problem: Popup select test still fails on Mac. Solution: Set 'clipboard' to "autoselect" https://github.com/vim/vim/commit/1755ec4278ee6dccdbb8030fd5a4cf6054211f81 vim-patch:8.1.1604: popup window scroll test is flaky Problem: Popup window scroll test is flaky. Solution: Add a delay between scroll events. https://github.com/vim/vim/commit/13b47c37a650ab6045680a9e5513ef6ad71ee93f vim-patch:8.1.1668: popup window test is a bit flaky on some systems Problem: Popup window test is a bit flaky on some systems. Solution: Clear the command line. (Naruhiko Nishino, closes vim/vim#4656) https://github.com/vim/vim/commit/8ccabf624ef4eb7ebe3e4d52449bc0bc545810f2 vim-patch:8.1.1935: test for text property popup window is flaky Problem: Test for text property popup window is flaky. Solution: Remove the undo message https://github.com/vim/vim/commit/57441d6fa0ba44be8dc16d6469a8659afc2f3b81 vim-patch:8.1.2347: MacOS: build fails Problem: MacOS: build fails. Solution: Don't define _XOPEN_SOURCE for Mac. https://github.com/vim/vim/commit/84f903326d44db9b75fc3a39d4866f636f9ad4cd vim-patch:8.2.0351: terminal in popup test is still a bit flaky Problem: Terminal in popup test is still a bit flaky. Solution: Clear and redraw before opening the popup. https://github.com/vim/vim/commit/3e919d2924c87eb8fee62603788fcc3ced2a0031 vim-patch:8.2.0752: terminal in popup window test is a bit flaky Problem: Terminal in popup window test is a bit flaky. Solution: Wait for shell job status to be "run". Mark as flaky test. https://github.com/vim/vim/commit/e06a28f5e30f439545ac125d54ffc4e6bd6daada vim-patch:8.2.1087: possible memory leak when file expansion fails Problem: Possible memory leak when file expansion fails. Solution: Clear the grow array when returning FAIL. Use an error message instead of an empty string. https://github.com/vim/vim/commit/566cc8c72bb8036f015a435800f28ef9f6a9a3b6 vim-patch:8.2.1863: json code not sufficiently tested Problem: Json code not sufficiently tested. Solution: Add more test cases. (Dominique Pellé, closes vim/vim#7166) https://github.com/vim/vim/commit/e3c65ce4e59143736bb2e0fba93c21283aa92a35
* vim-patch:8.2.0868: trim() always trims both endsskippi2020-10-17
| | | | | | | Problem: trim() always trims both ends. Solution: Add an argument to only trim the beginning or end. (Yegappan Lakshmanan, closes vim/vim#6126) https://github.com/vim/vim/commit/2245ae18e3480057f98fc0e5d9f18091f32a5de0
* vim-patch:8.2.1850: "vat" does not select tags correctly over line breakJan Edmund Lazo2020-10-15
| | | | | | | | | | | Problem: "vat" does not select tags correctly over line break. Solution: Adjust the search pattern. (Aufar Gilbran, closes vim/vim#7136) https://github.com/vim/vim/commit/a604ccc959c3bff88d3d5bc3c965819fc326d239 Use 'const char*' for spat,mpat,epat params of do_searchpair() to reduce (char_u *) casts. Cherry-pick Test_string_html_objects() changes from patch 8.2.0655.
* userfunc: abort early on invalid refsJan Edmund Lazo2020-09-30
| | | | Cherry-pick set_ref_in_call_stack() changes from patch 8.1.1575.
* vim-patch:8.2.0042: clearing funccal values twiceJan Edmund Lazo2020-09-30
| | | | | | Problem: Clearing funccal values twice. Solution: Remove clearing individual fields. https://github.com/vim/vim/commit/eac7ce01e92f3dee6bbccaf7e88680fe2ce286eb
* vim-patch:8.2.0499: calling a lambda is slower than evaluating a stringJan Edmund Lazo2020-09-30
| | | | | | | | | | Problem: Calling a lambda is slower than evaluating a string. Solution: Make calling a lambda faster. (Ken Takata, closes vim/vim#5727) https://github.com/vim/vim/commit/f10806b25090879fdc1a86cc0da2f4f34fd21921 Port "uf_flags" constants from patch 8.2.1054 to sync with Vim. Port user_func_error() from patch 8.2.0149. Port Test_lambda_scope() changes from patch 8.1.0736 so that it passes.
* vim-patch:8.1.1319: computing function length name in many placesJan Edmund Lazo2020-09-30
| | | | | | | | | | | Problem: Computing function length name in many places. Solution: compute name length in call_func(). https://github.com/vim/vim/commit/6ed8819822994512c160006bd1204aa11ae3c494 In call_func(), reassign "len" param to (int)STRLEN(funcname) instead of using vim_strsave() which runs strlen(). "len" param is checked for v:lua functions. call_func() states that strlen() is used if "len" is set to -1.
* vim-patch:8.1.1563: crash when using closureserw72020-09-30
| | | | | | | Problem: Crash when using closures. Solution: Set reference in varlist of funccal when running the garbage collector. (Ozaki Kiichi, closes vim/vim#4554, closes vim/vim#4547) https://github.com/vim/vim/commit/6e5000d493b4f385f901eb97f3ce0c8088373403
* screen: more work on fold_line replacementBjörn Linse2020-09-24
|
* lua: cleanup naming conventions of executor functionsBjörn Linse2020-09-10
|
* Support for :perl, :perlfile, :perldo and perleval() (#12809)Justin M. Keyes2020-09-05
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * support for :perl, :perlfile, :perldo and perleval() * document that the perl provider doesn't currently work on Windows * document that the perl legacy interface is now also supported * added perleval() documentation * import legacy perl interface tests * only perl 5.22+ is supported * healtcheck: use g:perl_host_prog if its set instead using just 'perl' isn't correct as it may not be the version requested. ditto for 'cpanm', rather go through 'App::cpanminus' to find the latest perl version
| * support for :perl, :perlfile, :perldo and perleval()Jacques Germishuys2020-08-30
| |
* | robustness: avoid adding offset to NULL pointerBjörn Linse2020-09-04
|/ | | | | | | | | | | UBSAN with clang 10.0 is checking for adding offsets to a `NULL` pointer which is not allowed. This is not yet checked in the version of clang used in CI (7.0.0). I will work on cases of this so that tests passes locally for me. This could be tested in CI by either upgrading the clang of the ASAN/UBSAN to 10.0, or add yet another CI target which builds with clang 10.0.
* Merge pull request #12510 from jamessan/clang-implicit-fallthroughJames McCoy2020-08-26
|\
| * Disable -Wimplicit-fallthrough for funcs.generated.hJames McCoy2020-08-23
| | | | | | | | | | | | This is code generated by gperf, so there's nothing we can do about it. The code does have /*FALLTHROUGH*/ comments but clang doesn't recognize them.
* | vim-patch:8.2.1517: cannot easily get the character under the cursorJan Edmund Lazo2020-08-23
|/ | | | | | Problem: Cannot easily get the character under the cursor. Solution: Add the {chars} argument to strpart(). https://github.com/vim/vim/commit/6c53fca02301ff871cddc1c74c388e23e53a424a
* vim-patch:8.2.0814: clang warning for implicit conversionJan Edmund Lazo2020-08-21
| | | | | | Problem: Clang warning for implicit conversion. Solution: Add type cast. (Dominique Pelle, closes vim/vim#6124) https://github.com/vim/vim/commit/3718427ba3c28ccab30726880389e44070640d3b
* vim-patch:8.2.0607: gcc warns for using uninitialized variableJan Edmund Lazo2020-08-19
| | | | | | Problem: Gcc warns for using uninitialized variable. (John Marriott) Solution: Set name_end also for environment variables. https://github.com/vim/vim/commit/2bb76accc66d17f2c027c04396082c46f410bfea
* userfunc: fix pvs/v547Jan Edmund Lazo2020-08-15
| | | | xcalloc() never returns NULL.
* vim-patch:8.1.2341: not so easy to interrupt a script programaticallyJan Edmund Lazo2020-08-14
| | | | | | Problem: Not so easy to interrupt a script programatically. Solution: Add the interrupt() function. (Yasuhiro Matsumoto, closes vim/vim#2834) https://github.com/vim/vim/commit/67a2deb9cb4ac2224cb1e4d240a5d0659f036264
* Merge remote-tracking branch 'upstream/master' into libcallnrJames McCoy2020-08-08
|\
| * vim-patch:8.2.1265: crash with EXITFREE when split() failsJan Edmund Lazo2020-08-02
| | | | | | | | | | | | Problem: Crash with EXITFREE when split() fails. Solution: Restore 'cpoptions'. https://github.com/vim/vim/commit/7d5e744162c1e971e5a863e89787cadc8e56051c
| * typval: fix incompatibility with vimerw72020-07-23
| | | | | | | | | | The dict_add_string of vim accepts NULL as the value to add. But tv_dict_add_str didn't accept it. Change it to accept NULL as well as vim.
| * Merge pull request #12575 from cbarrete/vim-8.2.0935Matthieu Coudron2020-07-20
| |\ | | | | | | [RFC] vim-patch:8.2.{0935,0937}
| | * Fix documentationCédric Barreteau2020-07-20
| | | | | | | | | | | | The list parameter is an an [in,out] rather than just an [in].
| | * Prevent `flatten` from taking a null listCédric Barreteau2020-07-15
| | |
| | * vim-patch:8.2.0937: asan failure in the flatten() testCédric Barreteau2020-07-15
| | | | | | | | | | | | | | | | | | Problem: Asan failure in the flatten() test. Solution: Free the flattened list. https://github.com/vim/vim/commit/dcf59c37d0e1517439c4c0c4a6a5ca09c90157ad
| | * vim-patch:8.2.0935: flattening a list with existing code is slowCédric Barreteau2020-07-15
| | | | | | | | | | | | | | | | | | Problem: Flattening a list with existing code is slow. Solution: Add flatten(). (Mopp, closes vim/vim#3676) https://github.com/vim/vim/commit/077a1e670ad69ef4cefc22103ca6635bd269e764
| * | vim-patch:8.2.0539: comparing two NULL list failsJan Edmund Lazo2020-07-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Comparing two NULL list fails. Solution: Change the order of comparing two lists. https://github.com/vim/vim/commit/7b293c730b07d1586688e622b8d9cbbb4a52379b N/A patches for version.c: vim-patch:8.2.1187: terminal2 test sometimes hangs in the GUI on Travis Problem: Terminal2 test sometimes hangs in the GUI on Travis. Solution: Disable Test_zz2_terminal_guioptions_bang() for now. https://github.com/vim/vim/commit/c85156bb897085d7f5a8e4e180287f87bf19b948 vim-patch:8.2.1188: memory leak with invalid json input Problem: Memory leak with invalid json input. Solution: Free all keys at the end. (Dominique Pellé, closes vim/vim#6443, closes vim/vim#6442) https://github.com/vim/vim/commit/6d3a7213f58da834b0fc869d05f87e86010c66cf vim-patch:8.2.1196: build failure with normal features Problem: Build failure with normal features. Solution: Add #ifdef. https://github.com/vim/vim/commit/83e7450053399942e1c9efa802c568b51d948541 vim-patch:8.2.1198: terminal2 test sometimes hangs in the GUI on Travis Problem: Terminal2 test sometimes hangs in the GUI on Travis. Solution: Move test function to terminal3 to see if the problem moves too. https://github.com/vim/vim/commit/a4b442614c5ca4ebf32acf5cf0b7b718496f1c94
| * | vim-patch:8.2.0893: assert_equalfile() does not take a third argumentJan Edmund Lazo2020-07-19
| |/ | | | | | | | | | | Problem: Assert_equalfile() does not take a third argument. Solution: Implement the third argument. (Gary Johnson) https://github.com/vim/vim/commit/fb517bac2384798bb5142ed1f75f965f93984c0a
| * lua: Add ability to pass tables with __callTJ DeVries2020-07-10
| | | | | | | | | | | | | | | | | | | | | | | | vim-patch:8.2.1054: not so easy to pass a lua function to Vim vim-patch:8.2.1084: Lua: registering function has useless code I think I have also opened up the possibility for people to use these callbacks elsewhere, since I've added a new struct that we should be able to use. Also, this should allow us to determine what the state of a list is in Lua or a dictionary in Lua, since we now can track the luaref as we go.
| * lua: Add ability to pass lua functions directly to vimLTJ DeVries2020-07-10
| |
| * eval: fix assertion failure in garbage collection (#12436)erw72020-06-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * eval: fix assertion failure in garbage collection fixes #12387, #12430 Lists with CopyID+1 linked only from previous_funccal may be removed in the garbage collection. Therefore, the terms of the assertions are not correct. This can be confirmed by the following (The l:x with CopyID+1 of the first function call needs to be removed by garbage collection): func! s:f() let l:x = [1] let g:x = l: endfunc for _ in range(2) call s:f() endfor call garbagecollect() " press any key * test: add test for #12387, #12430
| * Add overlapped option to jobstarterw72020-06-10
| | | | | | | | | | | | | | When UV_OVERLAPPED_PIPE was used for the pipe passed to the child process, a problem occurred with the standard input of the .Net Framework application (#11809). Therefore, add the overlapped option to jobstart() and change it so that it is set only when necessary
| * vim-patch:8.2.0111: VAR_SPECIAL is also used for booleansBilly Su2020-06-06
| | | | | | | | | | | | Problem: VAR_SPECIAL is also used for booleans. Solution: Add VAR_BOOL for better type checking. https://github.com/vim/vim/commit/9b4a15d5dba354d2e1e02871470bad103f34769a
| * vim-patch:8.1.0917: double free when running out of memoryJan Edmund Lazo2020-06-04
| | | | | | | | | | | | Problem: Double free when running out of memory. Solution: Remove one free. (Ken Takata, closes vim/vim#3955) https://github.com/vim/vim/commit/445e71c5ee06015064cf0642cac8190cfe8fbc59
| * Merge pull request #10905 from erw7/vim-8.1.0475Matthieu Coudron2020-05-25
| |\ | | | | | | vim-patch:8.1.{475,800,868,1007,1027,1031,1033,1037,1058,1435,1484,1485}
| | * vim-patch:8.1.1485: double free when garbage_collect() is used in autocommanderw72020-05-25
| | | | | | | | | | | | | | | | | | Problem: Double free when garbage_collect() is used in autocommand. Solution: Have garbage collection also set the copyID in funccal_stack. https://github.com/vim/vim/commit/c07f67ad0e9c48a07d49f2d67eb63e183a22386a
| | * vim-patch:8.1.1007: using closure may consume a lot of memoryerw72020-05-07
| | | | | | | | | | | | | | | | | | | | | Problem: Using closure may consume a lot of memory. Solution: unreference items that are no longer needed. Add a test. (Ozaki Kiichi, closes vim/vim#3961) https://github.com/vim/vim/commit/209b8e3e3bf7a4a3d102134124120f6c7f57d560