aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* | feat(lua): vim.tbl_contains supports general tables and predicates (#23040)Christian Clason2023-04-14
| | | | | | | | | | | | | | | | | | | | | | | | * feat(lua): vim.tbl_contains supports general tables and predicates Problem: `vim.tbl_contains` only works for list-like tables (integer keys without gaps) and primitive values (in particular, not for nested tables). Solution: Rename `vim.tbl_contains` to `vim.list_contains` and add new `vim.tbl_contains` that works for general tables and optionally allows `value` to be a predicate function that is checked for every key.
* | Merge pull request #23081 from zeertzjq/vim-8.2.1062zeertzjq2023-04-14
|\ \ | | | | | | vim-patch:8.2.{1062,1063,1064,1065,1068,1069,1070,1071,1073,1074,1075,1076,1079,1080,1098,1099,1100,1125,1161,1162,1163,1203,3216}
| * | vim-patch:8.2.3216: Vim9: crash when using variable in a loop at script levelzeertzjq2023-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Vim9: crash when using variable in a loop at script level. Solution: Do not clear the variable if a function was defined. Do not create a new entry in sn_var_vals every time. (closes vim/vim#8628) https://github.com/vim/vim/commit/2eb6fc3b52148f961e804ec2be361d531ff770d8 Omit eval_cstack: Vim9 script only. Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | vim-patch:8.2.1203: unused assignments in expression evaluationzeertzjq2023-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Unused assignments in expression evaluation. Solution: Move declarations and assignments to inner blocks where possible. https://github.com/vim/vim/commit/3ac9c4701a5f1e39303ca2885956db92215966db Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | vim-patch:8.2.1162: crash when using a lambdazeertzjq2023-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Crash when using a lambda. Solution: Check for evalarg to be NULL. https://github.com/vim/vim/commit/efaaaa683b7b0cebc128be5c0c257b9d6578ac96 Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | vim-patch:8.2.1161: Vim9: using freed memoryzeertzjq2023-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Vim9: using freed memory. Solution: Put pointer back in evalarg instead of freeing it. https://github.com/vim/vim/commit/8e2730a315b8b06192f5fc822dc218dbb3cff7ae Omit eval_tofree_lambda: Vim9 script only. N/A patches for version.c: vim-patch:8.2.1163: build error Problem: Build error. Solution: Add missing change to globals. https://github.com/vim/vim/commit/6e13530ca03dd9cad245221177dd65f712211448 Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | vim-patch:8.2.1125: Vim9: double quote can be a string or a commentzeertzjq2023-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Vim9: double quote can be a string or a comment. Solution: Only support comments starting with # to avoid confusion. https://github.com/vim/vim/commit/962d7213194647e90f9bdc608f693d39dd07cbd5 Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | vim-patch:8.2.1110: Vim9: line continuation does not work in function argumentszeertzjq2023-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Vim9: line continuation does not work in function arguments. Solution: Pass "evalarg" to get_func_tv(). Fix seeing double quoted string as comment. https://github.com/vim/vim/commit/e6b5324e3a3d354363f3c48e784c42ce3e77453f Omit skipwhite_and_linebreak_keep_string(): Vim9 script only. Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | vim-patch:8.2.1103: Coverity reports an unnecessary NULL checkzeertzjq2023-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Coverity reports an unnecessary NULL check. Solution: Remove the check for NULL. https://github.com/vim/vim/commit/e707c882b23a53d2c1f0d1f7fc3a7be247aca614 Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | vim-patch:8.2.1100: Vim9: cannot use line break in :execute argumentzeertzjq2023-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Vim9: cannot use line break in :execute, :echomsg and :echoerr argument. Solution: Check for line break. https://github.com/vim/vim/commit/47e880d6c13c3ec2888398fd9ba1f5a7180d791a Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | vim-patch:8.2.1099: Vim9: cannot use line break in :cexpr argumentzeertzjq2023-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Vim9: cannot use line break in :cexpr argument. Solution: Check for line break. https://github.com/vim/vim/commit/37c837119579ff70b005a4e54c2e26ca42b74022 Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | vim-patch:8.2.1098: Vim9: cannot use line break in :throw argumentzeertzjq2023-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Vim9: cannot use line break in :throw argument. Solution: Check for line break. https://github.com/vim/vim/commit/006ad48b8a15c3bace741d8caaf3195e592fbe78 Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | vim-patch:8.2.1080: Vim9: no line break allowed in a for loopzeertzjq2023-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Vim9: no line break allowed in a for loop. Solution: Skip line breaks in for command. https://github.com/vim/vim/commit/b7a78f7a6713f07d2fcad0b27dea22925c7b1cdf Omit *_break_count and skip_for_lines(): Vim9 script only. Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | vim-patch:8.2.1079: Vim9: no line break allowed in a while loopzeertzjq2023-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Vim9: no line break allowed in a while loop. Solution: Update stored loop lines when finding line breaks. https://github.com/vim/vim/commit/d5053d015a957b343ad9c9e45e0abd2978f10cf0 Omit getline_peek(): Vim9 script only. Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | vim-patch:8.2.1076: Vim9: no line break allowed in :if expressionzeertzjq2023-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Vim9: no line break allowed in :if expression. Solution: Skip linebreak. https://github.com/vim/vim/commit/faf8626b79e380fe81e7ae2439a535ed7619d27b Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | vim-patch:8.2.1075: Vim9: no line break allowed in :echo expressionzeertzjq2023-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Vim9: no line break allowed in :echo expression. Solution: Skip linebreak. https://github.com/vim/vim/commit/7e8967fdcdf45caf08753bb791dc3779e78b34c8 Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | vim-patch:8.2.1074: Vim9: no line break allowed after some operatorszeertzjq2023-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Vim9: no line break allowed after some operators. Solution: Skip a line break after the operator. Add eval_may_get_next_line() to simplify checking for a line break. https://github.com/vim/vim/commit/9215f01218b2ed2cfe49c1f43fcf342bd9ffdded Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | vim-patch:8.2.1073: Vim9: no line break allowed in () expressionzeertzjq2023-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Vim9: no line break allowed in () expression. Solution: Skip a line break. https://github.com/vim/vim/commit/7a4981b93642b5b62018cd8150b3fb0dfa2417d4 Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | vim-patch:8.2.1071: Vim9: no line break allowed inside a lambdazeertzjq2023-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Vim9: no line break allowed inside a lambda. Solution: Handle line break inside a lambda in Vim9 script. https://github.com/vim/vim/commit/e40fbc2ca9fda07332a4da5af1fcaba91bed865b Omit skip_expr_concatenate(). Apply the change to skip_expr() instead. Omit eval_ga: Vim9 script only. Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | vim-patch:8.2.1069: Vim9: fail to check for white space in listzeertzjq2023-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Vim9: fail to check for white space in list. Solution: Add check for white space. https://github.com/vim/vim/commit/e6e031739c9d0c4140e371031b58a249db0eb572 N/A patches for version.c: vim-patch:8.2.1070: Vim9: leaking memory when lacking white space in dict Problem: Vim9: leaking memory when lacking white space in dict. Solution: Clear the typval. https://github.com/vim/vim/commit/ab19d495fd880b25a38d58cbeb5b21e4d0ee5835 Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | vim-patch:8.2.1068: Vim9: no line break allowed inside a dictzeertzjq2023-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Vim9: no line break allowed inside a dict. Solution: Handle line break inside a dict in Vim9 script. https://github.com/vim/vim/commit/8ea9390b78da9e34a20e7418712921397c0c1989 Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | vim-patch:8.2.1065: Vim9: no line break allowed inside a listzeertzjq2023-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Vim9: no line break allowed inside a list. Solution: Handle line break inside a list in Vim9 script. https://github.com/vim/vim/commit/7147820cb978f5b179cfec2f9d8b7774e28d43e0 Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | vim-patch:8.2.1064: Vim9: no line break allowed before comperatorszeertzjq2023-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Vim9: no line break allowed before comperators. Solution: Check for comperator after line break. https://github.com/vim/vim/commit/e6536aa766e95b6c64489678eb029e6909ee6a35 Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | vim-patch:8.2.1063: Vim9: no line break allowed before || or &&zeertzjq2023-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Vim9: no line break allowed before || or &&. Solution: Check for operator after line break. https://github.com/vim/vim/commit/be7ee488761a5582a5605197c3951a17f20d072e Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | vim-patch:8.2.1062: Vim9: no line break allowed inside "cond ? val1 : val2"zeertzjq2023-04-14
|/ / | | | | | | | | | | | | | | | | Problem: Vim9: no line break allowed inside "cond ? val1 : val2". Solution: Check for operator after line break. https://github.com/vim/vim/commit/793648fb563359396a23740c72a6e04cb64df3a9 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* | Merge pull request #23078 from zeertzjq/vim-8.2.1047zeertzjq2023-04-14
|\ \ | | | | | | vim-patch:8.2.{1047,1048,1049,1050,1052},9.0.1447
| * | vim-patch:9.0.1447: condition is always truezeertzjq2023-04-14
| | | | | | | | | | | | | | | | | | | | | Problem: Condition is always true. Solution: Remove the useless condition. (closes vim/vim#12253) https://github.com/vim/vim/commit/474891bc89e657100bd37c29129451a0e601879d
| * | vim-patch:8.2.1049: Vim9: leaking memory when using continuation linezeertzjq2023-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Vim9: leaking memory when using continuation line. Solution: Keep a pointer to the continuation line in evalarg_T. Centralize checking for a next command. https://github.com/vim/vim/commit/b171fb179053fa631fec74911b5fb9374cb6a8a1 Omit eval_next_line(): Vim9 script only. vim-patch:8.2.1050: missing change in struct Problem: Missing change in struct. Solution: Add missing change. https://github.com/vim/vim/commit/65a8ed37f7bc61fbe5c612a7b0eb0dfc16ad3e11 Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | vim-patch:8.2.1047: Vim9: script cannot use line continuation like :def functionzeertzjq2023-04-14
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Vim9: script cannot use line continuation like in a :def function. Solution: Pass the getline function pointer to the eval() functions. Use it for addition and multiplication operators. https://github.com/vim/vim/commit/5409f5d8c95007216ae1190565a7a8ee9ebd7100 Omit source_nextline() and eval_next_non_blank(): Vim9 script only. N/A patches for version.c: vim-patch:8.2.1048: build failure without the eval feature Problem: Build failure without the eval feature. Solution: Add dummy typedef. https://github.com/vim/vim/commit/9d40c63c7dc8c3eb3886c58dcd334bc7f37eceba vim-patch:8.2.1052: build failure with older compilers Problem: Build failure with older compilers. Solution: Move declaration to start of block. https://github.com/vim/vim/commit/7acde51832f383f9a6d2e740cd0420b433ea841a Co-authored-by: Bram Moolenaar <Bram@vim.org>
* | vim-patch:9.0.1449: test for prompt buffer is flaky (#23076)zeertzjq2023-04-14
| | | | | | | | | | | | | | Problem: Test for prompt buffer is flaky. Solution: Use WaitForAssert() instead of TermWait(). (Ozaki Kiichi, closes vim/vim#12247) https://github.com/vim/vim/commit/ff6c230051ed2a2dbbbd517f51fe00c8ea27961b
* | vim-patch:8.2.{0695,0725,0734,0753,0818,0819,0822} (#23075)zeertzjq2023-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | vim-patch:8.2.0695: Vim9: cannot define a function inside a function Problem: Vim9: cannot define a function inside a function. Solution: Initial support for :def inside :def. https://github.com/vim/vim/commit/04b12697838b232b8b17c553ccc74cf1f1bdb81c vim-patch:8.2.0725: Vim9: cannot call a function declared later in Vim9 script Problem: Vim9: cannot call a function declared later in Vim9 script. Solution: Make two passes through the script file. https://github.com/vim/vim/commit/09689a02840be40fa7bb10b1921fb5bc5b2908f1 vim-patch:8.2.0734: Vim9: leaking memory when using :finish Problem: Vim9: leaking memory when using :finish. Solution: Do not check for next line in third pass. https://github.com/vim/vim/commit/04816717dfea6e2469ff4c9d40f68b59aaf03724 vim-patch:8.2.0753: Vim9: expressions are evaluated in the discovery phase Problem: Vim9: expressions are evaluated in the discovery phase. Solution: Bail out if an expression is not a constant. Require a type for declared constants. https://github.com/vim/vim/commit/32e351179eacfc84f64cd5029e221582d400bb38 vim-patch:8.2.0818: Vim9: using a discovery phase doesn't work well Problem: Vim9: using a discovery phase doesn't work well. Solution: Remove the discovery phase, instead compile a function only when it is used. Add :defcompile to compile def functions earlier. https://github.com/vim/vim/commit/822ba24743af9ee1b5e7f656a7a61a38f3638bca vim-patch:8.2.0819: compiler warning for unused variable Problem: Compiler warning for unused variable. Solution: Remove the variable. https://github.com/vim/vim/commit/f40e51a880a95f94dbbbecc9476559506c2cc345 vim-patch:8.2.0822: Vim9: code left over from discovery phase Problem: Vim9: code left over from discovery phase. Solution: Remove the dead code. https://github.com/vim/vim/commit/2eec37926db6d31beb36f162ac00357a30c093c8 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* | Merge pull request #23071 from luukvbaal/sloclaterzeertzjq2023-04-14
|\ \ | | | | | | fix: winbar is not redrawn on window change when 'showcmdloc' is "statusline"
| * | test(winbar_spec): properly update winbar when 'showcmdloc' is "statusline"quintik2023-04-14
| | | | | | | | | | | | | | | Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: Luuk van Baal <luukvbaal@gmail.com>
| * | vim-patch:9.0.1451: unnecessary redrawing when 'showcmdloc' is not "last"Luuk van Baal2023-04-13
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Unnecessary redrawing when 'showcmdloc' is not "last". Solution: Redraw later when "showcmd_is_clear" is set. (Luuk van Baal, closes vim/vim#12260) https://github.com/vim/vim/commit/aa7f25ebf16b8be99239af1134b441e3da93060a
* | | test: remove penlight usagedundargoc2023-04-14
| | |
* | | refactor: remove modelines from Lua filesGregory Anders2023-04-13
|/ / | | | | | | Now that we have builtin EditorConfig support and a formatting check in CI, these are not necessary.
* | fix(loader): reset hashes when running the loaderLewis Russell2023-04-13
| |
* | Merge pull request #23064 from bfredl/nolinkbfredl2023-04-13
|\ \ | | | | | | fix(api): make nvim_get_hl not return non-existing groups
| * | fix(api): make nvim_get_hl not return non-existing groupsbfredl2023-04-13
| | | | | | | | | | | | fixes #23063
* | | build(vim-patch.sh): ignore test_behave.vim (#23062)zeertzjq2023-04-13
|/ /
* | Merge pull request #23054 from bfredl/nobehavebfredl2023-04-13
|\ \ | | | | | | feat(ex_cmds)!: remove :behave
| * | feat(ex_cmds)!: remove :behavebfredl2023-04-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | just use the individual options instead. set selection=exclusive set selectmode=mouse,key set mousemodel=popup set keymodel=startsel,stopsel
* | | vim-patch:partial:9.0.0364: clang static analyzer gives warnings (#23059)zeertzjq2023-04-13
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Clang static analyzer gives warnings. Solution: Avoid the warnings. (Yegappan Lakshmanan, closes vim/vim#11043) https://github.com/vim/vim/commit/c99e182e1fb54e39540d25d0ccd8dcdde25bb96c Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
* | | refactor: remove bugreport.vimdundargoc2023-04-12
| | | | | | | | | | | | We already have :checkhealth that essentially supersedes it with more useful error checking.
* | | build: create helper function for simplifying luarocks installationdundargoc2023-04-12
| | | | | | | | | | | | | | | The function keeps track of the previously installed rock, meaning we no longer need to manually keep track of the dependency chain. This will make adding or removing rocks much easier.
* | | vim-patch:9.0.1444: crash when passing NULL to setcmdline() (#23048)zeertzjq2023-04-12
| | | | | | | | | | | | | | | | | | | | | Problem: Crash when passing NULL to setcmdline(). (Andreas Louv) Solution: Use tv_get_string() instead of using v_string directly. (closes vim/vim#12231, closes vim/vim#12227) https://github.com/vim/vim/commit/ac6cd31afcbdd08bfa92ca33f7d4ce5773ba4353
* | | fix(column): add truncated width during estimation for 'statuscolumn'luukvbaal2023-04-12
| | | | | | | | | | | | | | | | | | Problem: Estimated 'statuscolumn' width estimated is not properly used, executing the `w_redr_statuscol` path unnecessarily. Solution: Adjust `w_nrwidth` and 'statuscolumn' width before anything is actually drawn in a `win_update()`.
* | | docs: add vim.lsp.buf.formatting_sync() to deprecated.txt (#23045)zeertzjq2023-04-12
| | |
* | | fix(diagnostic): rename buffer → bufnr in type annotation (#23042)Mathias Fußenegger2023-04-12
|/ / | | | | | | See `:h diagnostic-structure`, the property name is `bufnr`, not `buffer`.
* | fix(runtime): add commentstring for C# ftplugin (#23039)Christian Clason2023-04-12
| | | | | | | | | | | | Problem: No commentstring is set for C# buffers after removing the default C-style commentstring Solution: Add `ftplugin/cs.lua` with C-style commentstring