aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* vim-patch:9.0.0071: command overlaps with printed text in scrollback (#19505)zeertzjq2022-07-26
| | | | | | | | | | | | | | Problem: Command overlaps with printed text in scrollback. Solution: Clear until end-of-line and use correct message chunk. (closes vim/vim#10765, closes vim/vim#10764) https://github.com/vim/vim/commit/ecdc82e74e6a7e73d9067ece1d5eac33abfde5ed N/A patches for version.c: vim-patch:9.0.0070: using utfc_ptr2char_len() when length is negative Problem: Using utfc_ptr2char_len() when length is negative. Solution: Check value of length. (closes vim/vim#10760) https://github.com/vim/vim/commit/4dc513a22c017b3061287deac74fa55f70a3214c
* feat(lsp): allow passing custom list handler to LSP functions that return ↵Dalius Dobravolskas2022-07-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lists (#19213) Currently LSP allows only using loclist or quickfix list window. I normally prefer to review all quickfix items without opening quickfix window. This fix allows passing `on_list` option which allows full control what to do with list. Here is example how to use it with quick fix list: ```lua local function on_list(options) vim.fn.setqflist({}, ' ', options) vim.api.nvim_command('cfirst') end local bufopts = { noremap=true, silent=true, buffer=bufnr } vim.keymap.set('n', '<leader>ad', function() vim.lsp.buf.declaration{on_list=on_list} end, bufopts) vim.keymap.set('n', '<leader>d', function() vim.lsp.buf.definition{on_list=on_list} end, bufopts) vim.keymap.set('n', '<leader>ai', function() vim.lsp.buf.implementation{on_list=on_list} end, bufopts) vim.keymap.set('n', '<leader>at', function() vim.lsp.buf.type_definition{on_list=on_list} end, bufopts) vim.keymap.set('n', '<leader>af', function() vim.lsp.buf.references(nil, {on_list=on_list}) end, bufopts) ``` If you prefer loclist do something like this: ```lua local function on_list(options) vim.fn.setloclist(0, {}, ' ', options) vim.api.nvim_command('lopen') end ``` close #19182 Co-authored-by: Mathias Fußenegger <mfussenegger@users.noreply.github.com>
* Merge pull request #19494 from zeertzjq/vim-8.2.5155zeertzjq2022-07-25
|\ | | | | vim-patch:8.2.{5155,5163,5164,5166}: diff fixes
| * vim-patch:8.2.5166: test for DiffUpdated failszeertzjq2022-07-25
| | | | | | | | | | | | Problem: Test for DiffUpdated fails. Solution: Also accept a count of two. https://github.com/vim/vim/commit/f65cc665fa751bad3ffe75f58ce1251d6695949f
| * vim-patch:8.2.5164: invalid memory access after diff buffer manipulationszeertzjq2022-07-25
| | | | | | | | | | | | Problem: Invalid memory access after diff buffer manipulations. Solution: Use zero offset when change removes all lines in a diff block. https://github.com/vim/vim/commit/c101abff4c6756db4f5e740fde289decb9452efa
| * vim-patch:8.2.5163: crash when deleting buffers in diff modezeertzjq2022-07-25
| | | | | | | | | | | | Problem: Crash when deleting buffers in diff mode. Solution: Recompute diffs later. Skip window without a valid buffer. https://github.com/vim/vim/commit/cd38bb4d83c942c4bad596835c6766cbf32e5195
| * vim-patch:8.2.5155: in diff mode windows may get out of synczeertzjq2022-07-25
| | | | | | | | | | | | Problem: In diff mode windows may get out of sync. (Gary Johnson) Solution: Avoid that the other window scrolls for 'cursorbind'. https://github.com/vim/vim/commit/a315ce1f326b836167ca8b1037dafd93eb8d4d4e
* | build(lint): check uncrustify version #19468dundargoc2022-07-25
|/ | | | This to prevent the user from accidentally using the wrong uncrustify version.
* Merge pull request #19470 from zeertzjq/vim-8.2.4866zeertzjq2022-07-25
|\ | | | | vim-patch:8.2.4866,9.0.0066: duplicate code in "get" functions
| * vim-patch:9.0.0066: switching window uneccarily when getting buffer optionszeertzjq2022-07-25
| | | | | | | | | | | | Problem: Switching window uneccarily when getting buffer options. Solution: Do not switch window when getting buffer options. (closes vim/vim#10767) https://github.com/vim/vim/commit/cd6ad6439da2ee2d1a8a6934c9d69e9c2664ba55
| * vim-patch:8.2.4866: duplicate code in "get" functionszeertzjq2022-07-25
|/ | | | | | | | | Problem: Duplicate code in "get" functions. Solution: Use get_var_from() for getwinvar(), gettabvar(), gettabwinvar() and getbufvar(). (closes vim/vim#10335) https://github.com/vim/vim/commit/47d4e317f85e4aeb3799d962f173bd0f1e7bc71c f_setbufvar() can use tv_get_buf_from_arg() as it sets emsg_off.
* Merge pull request #19493 from zeertzjq/vim-8.2.1469zeertzjq2022-07-25
|\ | | | | vim-patch:8.2.{1469,2254,2284,2285,2969,4228}: option fixes and refactorings
| * vim-patch:8.2.4228: no tests for clicking in the GUI tablinezeertzjq2022-07-25
| | | | | | | | | | | | | | Problem: No tests for clicking in the GUI tabline. Solution: Add test functions to generate the events. Add tests using the functions. (Yegappan Lakshmanan, closes vim/vim#9638) https://github.com/vim/vim/commit/b0ad2d92fd19e673ddbbc66742bae3f71778efde
| * vim-patch:8.2.2969: subtracting from number option fails when result is zerozeertzjq2022-07-25
| | | | | | | | | | | | | | | | | | | | Problem: Subtracting from number option fails when result is zero. (Ingo Karkat) Solution: Reset the string value when using the numeric value. (closes vim/vim#8351) https://github.com/vim/vim/commit/a42e6e0082a6d564dbfa55317d4a698ac12ae898 Cherry-pick Test_compound_assignment_operators() changes from patch 8.2.1593
| * vim-patch:8.2.2285: Vim9: cannot set an option to a falsezeertzjq2022-07-25
| | | | | | | | | | | | Problem: Vim9: cannot set an option to a false. Solution: For VAR_BOOL use string "0". (closes vim/vim#7603) https://github.com/vim/vim/commit/b0d8182fa39f2c9403f5f9a0663589fcab43a6c8
| * vim-patch:8.2.2284: Vim9: cannot set an option to a boolean valuezeertzjq2022-07-25
| | | | | | | | | | | | Problem: Vim9: cannot set an option to a boolean value. Solution: Check for VAR_BOOL. (closes vim/vim#7603) https://github.com/vim/vim/commit/31a201a04aa95708af5d62070d2d397a201cc1a5
| * vim-patch:8.2.2254: Vim9: bool option type is numberzeertzjq2022-07-25
| | | | | | | | | | | | | | Problem: Vim9: bool option type is number. Solution: Have get_option_value() return a different value for bool and number options. (closes vim/vim#7583) https://github.com/vim/vim/commit/dd1f426bd617ac6a775f2e7795ff0b159e3fa315
| * vim-patch:8.2.1469: Vim9: cannot assign string to string optionzeertzjq2022-07-25
| | | | | | | | | | | | Problem: Vim9: cannot assign string to string option. Solution: Change checks for option value. (closes vim/vim#6720) https://github.com/vim/vim/commit/0aae4809fd52b445531766411a9c963dc6274a04
* | ci(distribution): auto-release winget #19121Vedant2022-07-25
|/ | | | | - forked winget-pkgs to https://github.com/neovim/winget-pkgs - key stored in WINGET_TOKEN at https://github.com/neovim/neovim/settings/secrets/actions - deploy key public key stored at https://github.com/neovim/winget-pkgs/settings/keys
* Merge pull request #18992 from zeertzjq/alt-mousezeertzjq2022-07-25
|\ | | | | fix(input): do no reinterpret mouse keys with ALT modifiers
| * test: improve some input testszeertzjq2022-07-25
| |
| * fix(input): do no reinterpret mouse keys with ALT modifierszeertzjq2022-07-25
|/ | | | | Remove check for MOD_MASK_META as it is for <T- which never appears in TUI. Make small changes to docs.
* fix(api): make nvim_cmd mods.silent work correctly (#19489)notomo2022-07-25
|
* vim-patch:8.1.1763: evalfunc.c is still too big (#17952)Lewis Russell2022-07-24
|
* feat(l10n): improve zh_CN translations (#19483)Raphael2022-07-24
|
* fix(mouse): fix using uninitialized memory with K_MOUSEMOVE (#19480)zeertzjq2022-07-24
| | | Fix a mistake in the porting of Vim patch 8.0.1309.
* Merge pull request #19476 from zeertzjq/vim-9.0.0059zeertzjq2022-07-23
|\ | | | | vim-patch:9.0.{0059,0061}
| * vim-patch:9.0.0061: ml_get error with nested autocommandzeertzjq2022-07-23
| | | | | | | | | | | | Problem: ml_get error with nested autocommand. Solution: Also check line numbers for a nested autocommand. (closes vim/vim#10761) https://github.com/vim/vim/commit/5fa9f23a63651a8abdb074b4fc2ec9b1adc6b089
| * vim-patch:9.0.0059: test file has wrong namezeertzjq2022-07-23
|/ | | | | | Problem: Test file has wrong name. Solution: Rename the file. Various small fixes. (closes vim/vim#10674) https://github.com/vim/vim/commit/bb404f5ad5ec909318bc24e5b82e4ed7b87ba8f4
* Merge pull request #19471 from zeertzjq/vim-8.2.4731zeertzjq2022-07-23
|\ | | | | vim-patch:8.2.{4731,5035}: changelist patches
| * vim-patch:8.2.5035: when splitting a window the changelist position moveszeertzjq2022-07-23
| | | | | | | | | | | | | | | | Problem: When splitting a window the changelist position moves. Solution: Set the changelist index a bit later. (closes vim/vim#10493) https://github.com/vim/vim/commit/e6f13b473cf2c270e4eab214e09be9825320c11b Cherry-pick Test_nv_hat_count() change from patch 8.2.1593.
| * vim-patch:8.2.4731: the changelist index is not remembered per bufferzeertzjq2022-07-23
|/ | | | | | | | | | Problem: The changelist index is not remembered per buffer. Solution: Keep the changelist index per window and buffer. (closes vim/vim#10135, closes vim/vim#2173) https://github.com/vim/vim/commit/db0ea7f2b00c84d84f188c9e9953c4f1887528e7 Cherry-pick FOR_ALL_BUF_WININFO from patch 8.2.0500. Cherry-pick test_changelist.vim change from patch 8.2.3795.
* Merge pull request #19467 from zeertzjq/vim-8.2.1489zeertzjq2022-07-22
|\ | | | | vim-patch:8.2.1489
| * vim-patch:8.2.1489: Vim9: error when setting an option with setbufvar()zeertzjq2022-07-22
| | | | | | | | | | | | | | | | Problem: Vim9: error when setting an option with setbufvar(). Solution: Do not get a number from a string value. (closes vim/vim#6740) https://github.com/vim/vim/commit/191929b182ba38abe6bc431fb9d8d9507f408903 Vim9 is N/A, so this just refactors the code without changing behavior.
| * refactor: move f_getbufvar() and f_setbufvar() to eval/vars.czeertzjq2022-07-22
|/ | | | Vim moved them there in patch 8.1.1943.
* fix(build): non-git ("tarball") build fails #19448kylo2522022-07-22
| | | | | | | | | | | | | | | | | | | | | | Problem: Build fails without git or .git/. ref #19289 Solution: Fix the version generation logic. Test cases: If `git` is missing: -- Using NVIM_VERSION_MEDIUM: v0.8.0-dev If `.git/` is missing: -- Git tag extraction failed: fatal: not a git repository (or any of the parent directories): .git -- Using NVIM_VERSION_MEDIUM: v0.8.0-dev If `git describe` fails -- Git tag extraction failed: fatal: ... -- Using NVIM_VERSION_MEDIUM: v0.8.0-dev Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
* ci(release): use cpack on macOS #19459Carlo Cabrera2022-07-22
| | | | We use `cpack` to generate the release tarballs on Linux. Now that we don't need to bundle `libintl`, we can do the same on macOS.
* refactor: move FunPtr to types.h (#19466)zeertzjq2022-07-22
| | | | | This type itself is not eval-specific. Moving it to types.h can avoid including eval/funcs.h in many headers, and types.h is already included by many headers.
* feat(l10n): Turkish translations #19441Emir SARI2022-07-22
|
* vim-patch:8.1.1933: the eval.c file is too big (#19462)zeertzjq2022-07-22
| | | | | | | | Problem: The eval.c file is too big. Solution: Move code related to variables to evalvars.c. (Yegappan Lakshmanan, closes vim/vim#4868) https://github.com/vim/vim/commit/0522ba0359c96a8c2a4fc8fca0d3b58e49dda759 Name the new file eval/vars.c instead.
* test(mksession_spec): use %bwipeout! instead of qall! to close terminal (#19465)zeertzjq2022-07-22
| | | Avoid expect_exit, session will be closed when a new one is spawned.
* fix(grid): don't use utfc_ptr2char_len() when printing until NUL (#19456)zeertzjq2022-07-22
|
* ci(labeler): do not add "column" label for mark.{c,h} (#19455)zeertzjq2022-07-21
|
* refactor: fix clang warnings (#19453)zeertzjq2022-07-21
|
* fix(mark): give correct error message when mark is in another buffer (#19454)zeertzjq2022-07-21
|
* vim-patch:9.0.0047: using freed memory with recursive substitute (#19457)zeertzjq2022-07-21
| | | | | Problem: Using freed memory with recursive substitute. Solution: Always make a copy for reg_prev_sub. https://github.com/vim/vim/commit/32acf1f1a72ebb9d8942b9c9d80023bf1bb668ea
* vim-patch:8.2.4502 (#19439)zeertzjq2022-07-21
| | | | | | | | | | | | | vim-patch:8.2.4502: in the GUI a modifier is not recognized after CTRL-X Problem: In the GUI a modifier is not recognized for the key typed after CTRL-X, which may result in a mapping to be used. (Daniel Steinberg) Solution: Recognize a modifier starting with CSI. (closes vim/vim#9889) https://github.com/vim/vim/commit/d979d64fa269ff47a96fc6aed2f4cdd066753c0c Code is N/A. This just ports the test change. Test depends on README.txt in testdir. Add that file. Reorder test_ins_complete.vim to match upstream.
* Merge pull request #19445 from famiu/fix/local_winbar_tabsbfredl2022-07-20
|\ | | | | fix: local winbar with tabs
| * fix: local winbar with tabsFamiu Haque2022-07-20
| | | | | | | | Closes #19396
* | test(old): set 'display' to an empty string (#19450)zeertzjq2022-07-20
| |