aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
| | * | | fix(api): convert blob to NUL-terminated API stringSean Dewar2022-02-26
| | | | | | | | | | | | | | | | | | | | | | | | | Looks like I did an oopsie; although API strings carry a size field, they should still be usable as C-strings! (even though they may contain embedded NULs)
| * | | | feat(lua): add api and lua autocmdsTJ DeVries2022-02-27
| | | | |
| * | | | feat(lua): add <f-args> to user commands callback (#17522)Javier Lopez2022-02-27
| | | | | | | | | | | | | | | | | | | | | | | | | Works similar to ex <f-args>. It only splits the arguments if the command has more than one posible argument. In cases were the command can only have 1 argument opts.fargs = { opts.args }
| * | | | Merge pull request #16969 from shadmansaleh/enhance/ingore_nore_on_plug_keymapsbfredl2022-02-27
| |\ \ \ \ | | | | | | | | | | | | feat: ignore nore on <Plug> maps
| | * | | | feat: ignore nore on <Plug> mapsshadmansaleh2022-02-27
| | | | | |
| * | | | | Merge pull request #17386 from bfredl/neothreadbfredl2022-02-27
| |\ \ \ \ \ | | | | | | | | | | | | | | support threads in lua
| | * | | | | refactor(lua): cleanup and docs for threadsbfredl2022-02-26
| | | | | | |
| | * | | | | refactor(lua): use references directly on main threadBjörn Linse2022-02-26
| | | | | | |
| | * | | | | feat(lua): add proper support of luv threadserw72022-02-26
| | | |/ / / | | |/| | |
| * | | | | Merge pull request #17432 from zeertzjq/vim-8.1.2336zeertzjq2022-02-27
| |\ \ \ \ \ | | |_|/ / / | |/| | | | vim-patch:8.1.2336,8.2.{4338,4401}: mapping cursor and redrawing patches
| | * | | | vim-patch:8.2.4401: map listing does not clear the rest of the command linezeertzjq2022-02-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Map listing does not clear the rest of the command line. Solution: Call msg_clear_eos(). (closes vim/vim#5623, closes vim/vim#5962) https://github.com/vim/vim/commit/d288eaad846f0e07e0141226f97d858dcf96cb78
| | * | | | vim-patch:8.2.4338: an error from an expression mapping messes up the displayzeertzjq2022-02-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: An error from an expression mapping messes up the display. Solution: When the expression results in an empty string return K_IGNORE. In cmdline mode redraw the command line. (closes vim/vim#9726) https://github.com/vim/vim/commit/74a0a5b26d0180f3ea89e9495dff6a26f0df23cb
| | * | | | vim-patch:8.1.2336: when an expr mapping moves the cursor it is not restoredzeertzjq2022-02-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: When an expr mapping moves the cursor it is not restored. Solution: Position the cursor after an expr mapping. (closes vim/vim#5256) https://github.com/vim/vim/commit/4ebe0e62d097d68c5312f9c32714fb41a4c947a3
| * | | | | Merge pull request #17531 from ↵James McCoy2022-02-26
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | dundargoc/refactor/coverity/big-parameter-passed-by-value
| | * | | | | fix(coverity/175977): big parameter passed by valueDundar Göc2022-02-26
| | | | | | |
| * | | | | | test(ci): remove non-existent ci-fold from testsDundar Göc2022-02-27
| | | | | | |
| * | | | | | Merge pull request #17525 from lf-/hardcopy-truecolorbfredl2022-02-26
| |\ \ \ \ \ \ | | |/ / / / / | |/| | | | | feat(hardcopy): check gui colours for highlights first
| | * | | | | feat(hardcopy): check gui colours for highlights firstJade Lovelace2022-02-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, :hardcopy would only use terminal highlight colours, with a fixed mapping table, despite internally supporting true colour. This patch looks at the guifg colour first while coming up with the printing highlight colours, then falls back to the terminal ones. I have passed through the modec argument in this change because it was there before, but it could be deleted and hardcoded to 'c' since nobody sets it to anything else anywhere.
| * | | | | | Merge pull request #16845 from seandewar/floaty-aucmd-winbfredl2022-02-26
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | fix(aucmd_win): ensure aucmd_win stays floating
| | * | | | | | refactor(aucmd_win): remove need to restore window layoutSean Dewar2022-02-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are some places that mess with the window layout in preparation for moving a window to a different split (win_split_ins called with new_wp != NULL). This means the window layout can change slightly even if win_split_ins fails. This is why it was still needed to restore the window layout in aucmd_{prep,rest}buf even if we disallow win_split_ins from making aucmd_win non-floating by moving it into a split. We can just skip messing with the layout in such places if we're dealing with the aucmd_win.
| | * | | | | | fix(aucmd_win): ensure aucmd_win stays floatingSean Dewar2022-02-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Nvim uses a floating window for the autocmd window, but in certain situations, it can be made non-floating (`:wincmd J`), which can cause issues due to the previous setup and cleanup logic for a non-floating aucmd_win being removed from aucmd_prepbuf and aucmd_restbuf. This can cause glitchiness and crashes due to the aucmd_win's frame being invalid after closing its tabpage, for example. Ensure aucmd_win cannot be made non-floating. The only place this happens is in win_split_ins if new_wp != NULL.
| * | | | | | | Merge pull request #17414 from zeertzjq/api-set-cursor-redrawbfredl2022-02-26
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | fix(api): nvim_win_set_cursor() redraw for cursorline and statusline
| | * | | | | | | fix(api): nvim_win_set_cursor() redraw for cursorline and statuslinezeertzjq2022-02-15
| | | | | | | | |
| * | | | | | | | Merge pull request #17337 from dundargoc/refactor/pvs/v560bfredl2022-02-26
| |\ \ \ \ \ \ \ \ | | |_|_|_|_|/ / / | |/| | | | | | | refactor(PVS/V560): part of conditional expression is always true/false
| | * | | | | | | refactor(PVS/V560): part of conditional expression is always true/falseDundar Göc2022-02-13
| | | |_|_|_|/ / | | |/| | | | |
| * | | | | | | vim-patch:8.2.4464: Dtrace files are recognized as filetype D (#17518)Christian Clason2022-02-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Dtrace files are recognized as filetype D. Solution: Add a pattern for Dtrace files. (Teubel György, closes vim/vim#9841) Add some more testing. https://github.com/vim/vim/commit/4d56b971cbae01cc454eb09713326224993e38ed
| * | | | | | | Merge pull request #17472 from lewis6991/signcol_improvementsbfredl2022-02-26
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | signcol improvements
| | * | | | | | | fix(signcol): update cursor when signcol changesLewis Russell2022-02-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #14195
| | * | | | | | | refactor(signcol): store signcol in win_TLewis Russell2022-02-24
| | | | | | | | |
| | * | | | | | | fix(signcol): handle edge case with maximum valueLewis Russell2022-02-24
| | | |_|_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 50250542 failed to consider that the maximum passed to buf_signcols is window scoped whereas the signcols value is buffer scoped. This can lead to a bug where the signcolumn becomes incorrect if: - global signcolumn is set to auto:N - signcolumn in a window is changed locally to auto:M where M > N - the buffer has a line with M or greater signs.
| * | | | | | | Merge pull request #17467 from dundargoc/ci/remove-failing-windowsJames McCoy2022-02-25
| |\ \ \ \ \ \ \ | | |/ / / / / / | |/| | | | | | ci: remove failing windows CI tests
| | * | | | | | ci: skip tests that fail on windowsDundar Göc2022-02-20
| | | | | | | |
| * | | | | | | feat(highlight): support for blend in nvim_set_hl (#17516)Lewis Russell2022-02-24
| | | | | | | |
| * | | | | | | fix(api)!: correctly handle negative line numbers for nvim_buf_set_text (#17498)Gregory Anders2022-02-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | nvim_buf_set_text does not handle negative row numbers correctly: for example, nvim_buf_set_text(0, -2, 0, -1, 20, {"Hello", "world"}) should replace the 2nd to last line in the buffer with "Hello" and the first 20 characters of the last line with "world". Instead, it reports "start_row out of bounds". This happens because when negative line numbers are used, they are incremented by one additional number to make the non-negative line numbers end-exclusive. However, the line numbers for nvim_buf_set_text should be end-inclusive. In #15181 we handled this for nvim_buf_get_text by adding a new parameter to `normalize_index`. We can solve the problem with nvim_buf_set_text by simply availing ourselves of this new argument. This is a breaking change, but makes the semantics of negative line numbers much clearer and more obvious (as well as matching nvim_buf_get_text). BREAKING CHANGE: Existing usages of nvim_buf_set_text that use negative line numbers will be off-by-one.
| * | | | | | | feat(api): implement nvim_buf_get_text (#15181)Gregory Anders2022-02-22
| | |_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | nvim_buf_get_text is the mirror of nvim_buf_set_text. It differs from nvim_buf_get_lines in that it allows retrieving only portions of lines. While this can typically be done easily enough by API clients, implementing this function provides symmetry between the get/set text/lines APIs, and also provides a nice convenience that saves API clients the work of having to slice the result of nvim_buf_get_lines themselves.
| * | | | | | fix(highlight): accept NONE as a color name (#17487)Lewis Russell2022-02-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... for when `ns=0`. Also update the documentation of nvim_set_hl to clarify the set behaviour. Fixes #17478
| * | | | | | Merge pull request #17403 from zeertzjq/vim-8.1.1955zeertzjq2022-02-21
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | vim-patch:8.1.{1846,1955},8.2.0156
| | * | | | | | vim-patch:8.2.0156: various typos in source files and testszeertzjq2022-02-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Various typos in source files and tests. Solution: Fix the typos. (Emir Sari, closes vim/vim#5532) https://github.com/vim/vim/commit/4b96df5a017a04141c4e901b1fc5704a3ca48099
| | * | | | | | vim-patch:8.1.1955: tests contain typoszeertzjq2022-02-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Tests contain typos. Solution: Correct the typos. (Dominique Pelle) https://github.com/vim/vim/commit/1bc353b6f1b063e189e0cef26f8dc586dcf9161f Other changes are either N/A or already applied.
| | * | | | | | vim-patch:8.1.1846: inconsistently using GetVimCommand() and v:progpathzeertzjq2022-02-14
| | | |/ / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Inconsistently using GetVimCommand() and v:progpath. (Daniel Hahler) Solution: Use GetVimCommand(). (closes vim/vim#4806) https://github.com/vim/vim/commit/93344c2d707d9953f351c944e6a237c9916f69a3 Cherry-pick a change to test_profile.vim from patch 8.1.1544. Cherry-pick a change to test_vimscript.vim from patch 8.1.1826. Some of the args are no-op in Nvim, and `-i NONE` and `--headless` are already added by `GetVimCommand()`. I'll try to match the order of args in upstream, substituting `--not-a-term` with `--headless`.
| * | | | | | vim-patch:8.2.4427: getchar() may return modifiers if no character is availablezeertzjq2022-02-21
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: getchar() may return modifiers if no character is available. Solution: Do not process modifiers when there is no character. (closes vim/vim#9806) https://github.com/vim/vim/commit/ad6c45f62558e03d3e3a927b3fe4dbaf30a36bef
| * | | | | Merge pull request #17460 from seandewar/vim-8.2.4419Sean Dewar2022-02-19
| |\ \ \ \ \ | | | | | | | | | | | | | | vim-patch:8.2.{4403,4418,4419,4422}
| | * | | | | vim-patch:8.2.4422: autochdir test fails on MS-WindowsSean Dewar2022-02-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Autochdir test fails on MS-Windows. Solution: Expecta nother error on MS-Windows. https://github.com/vim/vim/commit/adbb383e0f2bb59286ea8133f02c448fd334958f
| | * | | | | vim-patch:8.2.4419: illegal memory access when using 20 highlightsSean Dewar2022-02-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Illegal memory access when using exactly 20 highlights. Solution: Add one more item in the array. (Brandon Richardson, closes vim/vim#9800) https://github.com/vim/vim/commit/a493b6506b67887a1cc2d1c00a896598c3b2d445
| | * | | | | vim-patch:8.2.4418: crash when using special multi-byte characterSean Dewar2022-02-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Crash when using special multi-byte character. Solution: Don't use isalpha() for an arbitrary character. https://github.com/vim/vim/commit/5921aeb5741fc6e84c870d68c7c35b93ad0c9f87 Rename vim_isalpha to mb_isalpha.
| | * | | | | vim-patch:8.2.4403: ml_get error with nested folds and deleting linesSean Dewar2022-02-19
| | | |_|_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: ml_get error with nested folds and deleting lines. Solution: Correct the last line number before calling hasFoldingWin(). https://github.com/vim/vim/commit/943773783384a5ff63f57769d37ddabf8156fe1e
| * / | | | vim-patch:8.2.4424: ".gts" and ".gjs" files are not recognized (#17464)Christian Clason2022-02-19
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | Problem: ".gts" and ".gjs" files are not recognized. Solution: Recognize Glimmer flavored typescript and javascript. (closes vim/vim#9799) https://github.com/vim/vim/commit/cdf717283ca70b18f20b8a2cefe7957083280c6f
| * | | | vim-patch:8.2.4414: solidity files are not recognized (#17451)Christian Clason2022-02-18
| | | | | | | | | | | | | | | | | | | | | | | | | Problem: Solidity files are not recognized. Solution: Add the *.sol pattern. (Dundar Goc, closes vim/vim#9792) https://github.com/vim/vim/commit/97b231541d4e82fbc85e51121448d95bd43c50ad
| * | | | refactor(lua): call loadfile internallyLewis Russell2022-02-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | .. instead of luaL_loadfile allows files to be cached
| * | | | vim-patch:8.2.3661: test for put with large count failszeertzjq2022-02-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Test for put with large count fails. Solution: Adjust the counts in the test. https://github.com/vim/vim/commit/8bc07e800c2af36686aadd4178cc2671f5c454d4