aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
| * | 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: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>
| * | 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
| * | fix(api): make nvim_get_hl not return non-existing groupsbfredl2023-04-13
| | | | | | | | | | | | fixes #23063
| * | 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>
| * | | 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()`.
| * | refactor: remove :CheckHealthdundargoc2023-04-12
| | | | | | | | | | | | | | | Using :CheckHealth invokes an error, and many of the features from :checkhealth doesn't even work such as calling only a specific check. Users should use :checkhealth instead.
| * | fix(highlight): combine ColorColumn with low-priority CursorLine (#23017)zeertzjq2023-04-11
| | |
| * | fix(mark): properly init mark views (#22996)zeertzjq2023-04-10
| | |
| * | Merge pull request #22865 from MunifTanjim/issue-20370bfredl2023-04-10
| |\ \ | | | | | | | | fix(api): do not re-apply win_config.style when missing
| | * | fix(api): do not re-apply win_config.style when missingMunif Tanjim2023-04-10
| | | |
| * | | fix(eval): prevent double-free in garbage collection (#22990)zeertzjq2023-04-10
| | | |
| * | | fix(column): 'statuscolumn' not drawn after virt_lines with "n" in 'cpo' ↵luukvbaal2023-04-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#22967) Problem: The 'statuscolumn' is not drawn and the line itself is drawn at an offset to the rest of the buffer after virt_lines if 'cpoptions' includes "n". Solution: Make sure 'statuscolumn' is drawn.
| * | | vim-patch:9.0.1443: ending Insert mode when accessing a hidden prompt buffer ↵zeertzjq2023-04-10
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | (#22984) Problem: Ending Insert mode when accessing a hidden prompt buffer. Solution: Don't stop Insert mode when it was active before. (closes vim/vim#12237) https://github.com/vim/vim/commit/05a627c3d4e42a18f76c14828d68ee4747118211 Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | refactor(mappings)!: remove #n as a notation for a function key (#17318)zeertzjq2023-04-08
| | | | | | | | | | | | This notation is hardly used and makes the behavior of the from_part argument of nvim_replace_termcodes confusing.
| * | fix(highlight): add missing g: prefix for colors_name (#22952)zeertzjq2023-04-08
| | | | | | | | | | | | Fix #22951. This was fixed in Vim in patch 8.2.0613.
| * | Merge pull request #22873 from bfredl/keyset2bfredl2023-04-08
| |\ \ | | | | | | | | refactor(api): make typed dicts appear as real types in the source code
| | * | refactor(api): make typed dicts appear as types in the source codebfredl2023-04-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | problem: can we have Serde? solution: we have Serde at home This by itself is just a change of notation, that could be quickly merged to avoid messy merge conflicts, but upcoming changes are planned: - keysets no longer need to be defined in one single file. `keysets.h` is just the initial automatic conversion of the previous `keysets.lua`. keysets just used in a single api/{scope}.h can be moved to that file, later on. - Typed dicts will have more specific types than Object. this will enable most of the existing manual typechecking boilerplate to be eliminated. We will need some annotation for missing value, i e a boolean will need to be represented as a TriState (none/false/true) in some cases. - Eventually: optional parameters in form of a `Dict opts` final parameter will get added in some form to metadata. this will require a discussion/desicion about type forward compatibility.
| * | | vim-patch:9.0.1442: mapset() does not restore non-script context (#22942)zeertzjq2023-04-08
| | | | | | | | | | | | | | | | | | | | | | | | Problem: mapset() does not restore non-script context. Solution: Also accept negative sid. (closes vim/vim#12132) https://github.com/vim/vim/commit/bfc7cbd1d44e53e844a079d8ad16ae990dad664d
| * | | ci: don't automatically enable -Werror on CI environmentsdundargoc2023-04-07
| | | | | | | | | | | | | | | | | | | | | | | | This catches downstream consumers of neovim off guard when using neovim in an esoteric environment not tested in our own CI. Closes https://github.com/neovim/neovim/issues/22932
| * | | refactor: remove redundant castsii142023-04-07
| |/ /
| * | refactor: remove redundant castsii142023-04-07
| | |
| * | refactor: remove redundant const char * castsii142023-04-07
| | |
| * | refactor: make char * parameters const in message.cii142023-04-07
| | | | | | | | | | | | Add const to char * parameters in message.c functions and remove some redundant casts.
| * | Merge pull request #22907 from luukvbaal/evalstcbfredl2023-04-07
| |\ \ | | | | | | | | feat(api): set statuscolumn line number in nvim_eval_statusline()
| | * | feat(api): set statuscolumn line number in nvim_eval_statusline()Luuk van Baal2023-04-07
| | | | | | | | | | | | | | | | | | | | | | | | Having the user set `v:lnum` before calling `nvim_eval_statusline()` is unnecesarily fragile. Redraws inbetween setting `v:lnum` and the `nvim_eval_statusline()` call will overwrite `v:lnum`.
| * | | refactor: remove use of reserved c++ keywordsii142023-04-06
| | | | | | | | | | | | | | | | | | | | | | | | libnvim couldn't be easily used in C++ due to the use of reserved keywords. Additionally, add explicit casts to *alloc function calls used in inline functions, as C++ doesn't allow implicit casts from void pointers.
| * | | fix(folds): handle visual blockwise indent insertion correctly (#22898)Brandon Simmons2023-04-07
| | | | | | | | | | | | | | | | | | | | Previously, the fold information was incorrect because it wasn't being updated during the blockwise insertion. (Solution by zeertzjq)
| * | | Merge pull request #22910 from bfredl/nonormalbfredl2023-04-06
| |\ \ \ | | |/ / | |/| | fix(highlight): use winhl=Foo:Bar even when Bar is empty
| | * | fix(highlight): use winhl=Foo:Bar even when Bar is emptybfredl2023-04-06
| | | | | | | | | | | | | | | | fixes #22906
| * | | refactor: make error message definitions constii142023-04-05
| | | | | | | | | | | | | | | | message.c functions now take const char * as a format. Error message definitions can be made const.
| * | | refactor: rename local API alias from a to apiLewis Russell2023-04-05
| |/ / | | | | | | | | | | | | | | | | | | | | | Problem: Codebase inconsistently binds vim.api onto a or api. Solution: Use api everywhere. a as an identifier is too short to have at the module level.
| * | feat(api): evaluate 'statuscolumn' with nvim_eval_statusline()Luuk van Baal2023-04-05
| | |
| * | feat(vim.diff): allow passing an integer for linematchLewis Russell2023-04-04
| | |
| * | feat(lsp): create default link from @lsp.type.comment to Comment (#22888)Gregory Anders2023-04-04
| | |
| * | build: cmake cleanupdundargoc2023-04-04
| | | | | | | | | | | | | | | | | | | | | - Change libtermkeyCMakeLists.txt to LibtermkeyCMakeLists.txt - Remove duplicate mark_as_advanced calls in FindLibuv.cmake - Fix "Enabling Clang sanitizer" messages as it's no longer clang-only - Simplify parser installation syntax - Rename tree-sitter to treesitter
| * | refactor(treesitter): delegate region calculation to treesitter (#22576)Lewis Russell2023-04-04
| | |
| * | fix(api): avoid double hit-enter prompt with nvim_err_writeln (#22879)zeertzjq2023-04-04
| | |
| * | Merge pull request #22847 from luukvbaal/redrstatusbfredl2023-04-03
| |\ \ | | | | | | | | fix(ui): ruler is not redrawn in cmdline with redrawstatus
| | * | fix(ui): ruler is not redrawn in cmdline with redrawstatusLuuk van Baal2023-04-02
| | | |
| * | | vim-patch:9.0.1439: start Insert mode when accessing a hidden prompt buffer ↵zeertzjq2023-04-03
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#22867) Problem: Start Insert mode when accessing a hidden prompt buffer. Solution: Call leaving_window() in aucmd_restbuf(). (Thorben Tröbst, closes vim/vim#12148, closes vim/vim#12147) https://github.com/vim/vim/commit/cde8de034524d00aba4ff4142e658baff511e12d Cherry-pick test_prompt_buffer.vim changes from patch 9.0.0631. Co-authored-by: orbital <orbital@holgerines.de>
| * | refactor(defaults)!: change default 'commentstring' value to empty (#22862)zeertzjq2023-04-02
| |/
| * Merge pull request #22844 from luukvbaal/stlrecordingbfredl2023-04-02
| |\ | | | | | | fix(ui): recording change doesn't trigger statusline redraw
| | * fix(ui): recording change doesn't trigger statusline redrawLuuk van Baal2023-04-01
| | |
| * | Merge pull request #22778 from luukvbaal/getextbfredl2023-04-02
| |\ \ | | | | | | | | feat(extmarks): extend nvim_buf_get_extmarks()
| | * | feat(extmarks): extend nvim_buf_get_extmarks()Luuk van Baal2023-04-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Can not get all extmarks in a buffer. Properties are missing from the details array. Solution: Allow getting all extmarks in a buffer by supplying a -1 "ns_id". Add missing properties to the details array.