aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval
Commit message (Collapse)AuthorAge
...
| | * vim-patch:8.1.0475: memory not freed on exit when quit in autocmderw72020-05-07
| | | | | | | | | | | | | | | | | | Problem: Memory not freed on exit when quit in autocmd. Solution: Remember funccal stack when executing autocmd. https://github.com/vim/vim/commit/27e80c885bcb5c5cf6a6462d71d6c81b06ba2451
| * | matchdelete: fix porting (#12328)Shougo2020-05-17
| | | | | | | | | really use win and not curwin
| * | vim-patch:8.1.1084: cannot delete a match from another window (#12325)Shougo2020-05-16
| | | | | | | | | | | | | | | | | | Problem: Cannot delete a match from another window. (Paul Jolly) Solution: Add window ID argument to matchdelete(), clearmatches(), getmatches() and setmatches(). (Andy Massimino, closes vim/vim#4178) https://github.com/vim/vim/commit/aff749145e23c0f20b5158d1d3a942948ed138e3
| * | vim-patch:8.1.1186: readdir() allocates list twiceJan Edmund Lazo2020-05-11
| |/ | | | | | | | | | | Problem: readdir() allocates list twice. Solution: Remove second allocation. Also check for zero length. https://github.com/vim/vim/commit/334ad415040f9592451ec99498cd99f90d6e33e6
| * Merge #12203 from janlazo/vim-8.2.0648Justin M. Keyes2020-05-05
| |\ | | | | | | vim-patch:8.1.{800,868,1581},8.2.{648,649,663,678,681,688,691,692}
| | * vim-patch:8.1.0868: crash if triggering garbage collector after a function callJan Edmund Lazo2020-05-03
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Crash if triggering garbage collector after a function call. (Michael Henry) Solution: Don't call the garbage collector right away, do it later. (closes vim/vim#3894) https://github.com/vim/vim/commit/889da2f2438c8168f9a25dc776360b81109bad44
| | * vim-patch:8.1.0800: may use a lot of memory when a function refers itselfJan Edmund Lazo2020-05-03
| | | | | | | | | | | | | | | | | | | | | | | | Problem: May use a lot of memory when a function creates a cyclic reference. Solution: After saving a funccal many times, invoke the garbage collector. (closes vim/vim#3835) https://github.com/vim/vim/commit/4456ab527a6a5faae9287f3bd2e52cc18966cfb0
| * | vim-patch:8.1.1120: cannot easily get directory entry matches #12222Hennadii Chernyshchyk2020-05-05
| | | | | | | | | | | | | | | | | | | | | Problem: Cannot easily get directory entry matches. Solution: Add the readdir() function. (Yasuhiro Matsumoto, closes vim/vim#2439) https://github.com/vim/vim/commit/543c9b1921d7605498b54afdef518e312f1b4515 closes #12212
| * | funcs: Fix a memory leak in f_expand (#12227)erw72020-05-04
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | :echo expand('%', v:false, v:true) ==423== 28 bytes in 1 blocks are definitely lost in loss record 124 of 420 ==423== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==423== by 0x2AD09C: try_malloc (memory.c:71) ==423== by 0x2AD0B8: xmalloc (memory.c:105) ==423== by 0x2AE05D: xmallocz (memory.c:182) ==423== by 0x1F7CF4: vim_strnsave (strings.c:68) ==423== by 0x318813: eval_vars (ex_docmd.c:8885) ==423== by 0x34F5FC: f_expand (funcs.c:2058) ==423== by 0x36D023: call_func (eval.c:6419) ==423== by 0x370C28: get_func_tv.lto_priv.707 (eval.c:6150) ==423== by 0x372748: eval7 (eval.c:4326) ==423== by 0x37291A: eval6 (eval.c:4036) ==423== by 0x372BF6: eval5 (eval.c:3884)
| * Merge pull request #12204 from archseer/lsp-user-dataMatthieu Coudron2020-04-30
| |\ | | | | | | lsp/completion: Expose completion_item under completed_items.user_data + vim-patch:8.2.0084
| | * vim-patch:8.2.0084: complete item "user_data" can only be a stringBlaž Hrastnik2020-04-29
| | | | | | | | | | | | | | | | | | Problem: Complete item "user_data" can only be a string. Solution: Accept any type of variable. (closes vim/vim#5412) https://github.com/vim/vim/commit/0892832bb6c7e322fcae8560eaad5a8140ee4a06
| * | lsp: use vim.tbl_isempty to check sign (#12190)Hirokazu Hata2020-04-28
| |/ | | | | | | | | ref: #12164 fix #12201 sign_getdefined() returns a list, {} if the sign is not defined.
| * external pum: use floating point geometry; typval: add tv_dict_add_floatYatao Li2020-04-28
| |
| * Merge #11851 'eval.c: factor out eval/userfunc.c'Justin M. Keyes2020-04-26
| |\ | | | | | | | | | vim-patch:7.4.2058
| | * rename: user_funcs -> userfuncJakub Łuczyński2020-02-13
| | | | | | | | | | | | Lets stick with vim for now
| | * fix: includesJakub Łuczyński2020-02-13
| | |
| | * fix: moved macrosJakub Łuczyński2020-02-13
| | |
| | * fix: moved some static inline functionJakub Łuczyński2020-02-13
| | |
| | * fix: vvlua_partialJakub Łuczyński2020-02-13
| | |
| | * fix: made eval_lavars_used globalJakub Łuczyński2020-02-13
| | |
| | * fix: include static function declarationsJakub Łuczyński2020-02-13
| | |
| | * fix: header updatesJakub Łuczyński2020-02-13
| | |
| | * fix: factor out make_partialJakub Łuczyński2020-02-13
| | |
| | * fix: prof functionsJakub Łuczyński2020-02-13
| | |
| | * fix: var_set_globalJakub Łuczyński2020-02-13
| | |
| | * fix: factor out new functionsJakub Łuczyński2020-02-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | free_unref_funccal get_funccal_local_var get_funccal_args_var get_current_funccal_dict set_ref_in_previous_funccal set_ref_in_call_stack set_ref_in_func_args note: In vim semantic for garbage_collect was changed (the result of free_unref_funccal is ignored, bug or intentional?) For nvim I did leave previous behavior thus did_free = did_free || free_unref_funccal(copyID, testing); instead of just free_unref_funccal(copyID, testing);
| | * fix: func_initJakub Łuczyński2020-02-13
| | |
| | * unstatic some functionsJakub Łuczyński2020-02-13
| | |
| | * moved more stuffJakub Łuczyński2020-02-13
| | |
| | * created header fileJakub Łuczyński2020-02-13
| | |
| | * moved functions to user_funcs.c (no code changes)Jakub Łuczyński2020-02-13
| | |
| * | Merge pull request #12047 from erw7/fix-resolve-on-windowsMatthieu Coudron2020-04-19
| |\ \ | | | | | | | | | | | | Change resolve() to resolve symbolic links on Windows Neovim worked the same way as vim for shortcuts, but didn't handle symbolic links and junction cases. This PR implements the same behavior for symbolic links and junctions as for vim.
| | * | Change to canonicalize only when reparse point in includederw72020-04-02
| | | |
| | * | Change resolve() to resolve symbolic links on Windowserw72020-04-02
| | | |
| * | | vim-patch:8.2.0507: getbufvar() may get the wrong dictionaryJan Edmund Lazo2020-04-13
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Getbufvar() may get the wrong dictionary. (David le Blanc) Solution: Check for empty name. (closes vim/vim#5878) https://github.com/vim/vim/commit/5259275347667a90fb88d8ea74331f88ad68edfc
| * | | vim-patch:8.2.0473: variables declared in an outer scopeJan Edmund Lazo2020-04-13
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Variables declared in an outer scope. Solution: Decleare variables only in the scope where they are used. https://github.com/vim/vim/commit/8601545338581c01e328cdc3a72c0b12d92c54cf
| * | | vim-patch:8.1.1745: compiler warning for unused argumentJan Edmund Lazo2020-04-13
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Compiler warning for unused argument. Solution: Add UNUSED. Change comments to new style. https://github.com/vim/vim/commit/1f164b19685d8ad709b11f3f1933685469251e30
| * | | vim-patch:8.1.2378: using old C style commentsJan Edmund Lazo2020-04-12
| |/ / | | | | | | | | | | | | | | | Problem: Using old C style comments. Solution: Use // comments where appropriate. https://github.com/vim/vim/commit/5d18efecfd6c45d69f55268948a22cd0465bb955
| * | vim-patch:8.1.0881: can execute shell commands in rvim through interfacesJan Edmund Lazo2020-03-01
| | | | | | | | | | | | | | | | | | | | | Problem: Can execute shell commands in rvim through interfaces. Solution: Disable using interfaces in restricted mode. Allow for writing file with writefile(), histadd() and a few others. https://github.com/vim/vim/commit/8c62a08faf89663e5633dc5036cd8695c80f1075
| * | pvs/v1048: variable was assigned same valueJan Edmund Lazo2020-03-01
| | |
| * | vim-patch:8.1.1510: a plugin cannot easily expand a command like done internallyJan Edmund Lazo2020-03-01
| | | | | | | | | | | | | | | | | | Problem: A plugin cannot easily expand a command like done internally. Solution: Add the expandcmd() function. (Yegappan Lakshmanan, closes vim/vim#4514) https://github.com/vim/vim/commit/80dad48c5095d30873a42ec82628bdb213125d8e
| * | vim-patch:8.1.0619: :echomsg and :echoerr do not handle List and DictJan Edmund Lazo2020-02-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: :echomsg and :echoerr do not handle List and Dict like :echo does. (Daniel Hahler) Solution: Be more tolerant about the expression result type. https://github.com/vim/vim/commit/461a7fcfce3cd6414f990037e6468af3b5ccf119 Add lua functional tests for :echo,:echon,:echomsg,:echoerr because nvim did not port "test_" functions from Vim that modify internal state. Testing :echoerr via try/catch is sufficient.
| * | nvim:eval: Fix enum declaration for ListLenSpecialsAndreas Schneider2020-02-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of declaring an enum, this creates a global variable. As gcc10 uses -fno-common by default, global variables declared with the same name more than once is not allowed anymore revealing this issue. Each time this header is included, we define the enum name as a global variable. See also https://bugzilla.redhat.com/show_bug.cgi?id=1799680
| * | vim-patch:8.1.1122: char2nr() does not handle composing charactersJan Edmund Lazo2020-02-20
| |/ | | | | | | | | | | | | | | Problem: char2nr() does not handle composing characters. Solution: Add str2list() and list2str(). (Ozaki Kiichi, closes vim/vim#4190) https://github.com/vim/vim/commit/9d40128afd7fcd038ff6532722b55b1a8c189ce8 'utf8' optional param is noop unlike Vim.
| * vim-patch:8.1.0091: MS-Windows: Cannot interrupt gdb when program is runningerw72020-02-12
| | | | | | | | | | | | | | Problem: MS-Windows: Cannot interrupt gdb when program is running. Solution: Add debugbreak() and use it in the terminal debugger. Respect 'modified' in a prompt buffer. https://github.com/vim/vim/commit/4551c0a9fcdbdef52836d4852686d54b5e47fdaf
| * vim-patch:8.1.0069: cannot handle pressing CTRL-C in a prompt buffererw72020-02-12
| | | | | | | | | | | | Problem: Cannot handle pressing CTRL-C in a prompt buffer. Solution: Add prompt_setinterrupt(). https://github.com/vim/vim/commit/0e5979a6d491f68c4a8c86fab489016919329a6b
| * vim-patch:8.1.0027: difficult to make a plugin that feeds a line to a joberw72020-02-12
| | | | | | | | | | | | Problem: Difficult to make a plugin that feeds a line to a job. Solution: Add the nitial code for the "prompt" buftype. https://github.com/vim/vim/commit/f273245f6433d5d43a5671306b520a3230c35787
| * eval.c: factor out eval/funcs.c #11828Jakub Łuczyński2020-02-10
| | | | | | | | | | | | close #11828 ref #5081 cf. vim patch 7.4.2063
| * doc: fix typos [ci skip] #11787Hye Sung Jung2020-01-30
| |
| * vim-patch:8.1.1579: dict and list could be GC'ed while displaying errorJan Edmund Lazo2020-01-05
| | | | | | | | | | | | | | | | | | Problem: Dict and list could be GC'ed while displaying error in a timer. (Yasuhiro Matsumoto) Solution: Block garbage collection when executing a timer. Add test_garbagecollect_soon(). Add "no_wait_return" to test_override(). (closes vim/vim#4571) https://github.com/vim/vim/commit/adc6714aac20f5462a0ecec50ab4806b2f3ab0db