aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* | vim-patch:8.2.0851: can't distinguish <M-a> from accented "a" in the GUIzeertzjq2022-04-29
| | | | | | | | | | | | Problem: Can't distinguish <M-a> from accented "a" in the GUI. Solution: Use another way to make mapping <C-bslash> work. (closes vim/vim#6163) https://github.com/vim/vim/commit/f4ae6b245a54f11dd967d06b80f30e5abf55fb82
* | vim-patch:8.2.0839: dropping modifier when putting a character back in typeaheadzeertzjq2022-04-29
| | | | | | | | | | | | | | | | | | Problem: Dropping modifier when putting a character back in typeahead. Solution: Add modifier to ins_char_typebuf(). (closes vim/vim#6158) https://github.com/vim/vim/commit/b42c0d54279b1fdb79652db0c84171e213458809 Vim's test doesn't seem to work properly as the hit-enter prompt seems to be delayed. Add a Lua screen test.
* | vim-patch:partial:8.2.0815: maparg() does not provide enough information for ↵zeertzjq2022-04-29
| | | | | | | | | | | | | | | | | | | | mapset() Problem: maparg() does not provide enough information for mapset(). Solution: Add "lhsraw" and "lhsrawalt" items. Drop "simplified" https://github.com/vim/vim/commit/9c65253fe702ea010afec11aa971acd542c35de2 This only includes the "lhs" value part.
* | feat(edit): insert an unsimplified key using CTRL-SHIFT-Vzeertzjq2022-04-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This marks the following Vim patches as ported: vim-patch:8.1.2333: with modifyOtherKeys CTRL-^ doesn't work Problem: With modifyOtherKeys CTRL-^ doesn't work. Solution: Handle the exception. https://github.com/vim/vim/commit/828ffd596394f714270a01a55fc3f949a8bd9b35 vim-patch:8.1.2350: other text for CTRL-V in Insert mode with modifyOtherKeys Problem: Other text for CTRL-V in Insert mode with modifyOtherKeys. Solution: Convert the Escape sequence back to key as if modifyOtherKeys is not set, and use CTRL-SHIFT-V to get the Escape sequence itself. (closes vim/vim#5254) https://github.com/vim/vim/commit/fc4ea2a72d36de1196a3ce17352e72f8fe90f4bb vim-patch:8.2.2084: CTRL-V U doesn't work to enter a Unicode character Problem: CTRL-V U doesn't work to enter a Unicode character when modifyOtherKeys is effective. (Ken Takata) Solution: Add a flag to get_literal() for the shift key. (closes vim/vim#7413) https://github.com/vim/vim/commit/0684e36a7ee0743f2889698fb8e0e14f7acae423 Omit getcmdkeycmd() change as it depends on Vim patch 8.2.2062, which may introduce a potential breakage.
* | vim-patch:8.1.2167: mapping test fails on MS-Windowszeertzjq2022-04-29
| | | | | | | | | | | | Problem: Mapping test fails on MS-Windows. Solution: Remove all the existing Insert-mode mappings. https://github.com/vim/vim/commit/2559a47823a6a7827631f2e6a0176d7afce2721c
* | vim-patch:8.1.2165: mapping test fails on Maczeertzjq2022-04-29
| | | | | | | | | | | | Problem: Mapping test fails on Mac. Solution: Remove the default Mac mapping. https://github.com/vim/vim/commit/4f2f61a014e80217a2d6ac476c8f94e250a3d0ff
* | vim-patch:8.1.2159: some mappings are listed twicezeertzjq2022-04-29
| | | | | | | | | | | | Problem: Some mappings are listed twice. Solution: Skip mappings duplicated for modifyOtherKeys. (closes vim/vim#5064) https://github.com/vim/vim/commit/fafb4b18cd4aa5897537f53003b31bb83d7362df
* | feat(input): delay all simplificationszeertzjq2022-04-29
| | | | | | | | Avoid unsimplfied Ctrl-C in input buffer when it is not mapped.
* | test(old): revert changes from ed88ca75034a48916d165e88459c791c450df550zeertzjq2022-04-29
| | | | | | | | | | Copy test_regex_char_classes.vim from upstream to avoid future encoding problems.
* | vim-patch:8.1.2145: cannot map <C-H> when modifyOtherKeys is enabledzeertzjq2022-04-29
| | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Cannot map <C-H> when modifyOtherKeys is enabled. Solution: Add the <C-H> mapping twice, both with modifier and as 0x08. Use only the first one when modifyOtherKeys has been detected. https://github.com/vim/vim/commit/459fd785e4a8d044147a3f83a5fca8748528aa84 Add REPTERM_NO_SPECIAL instead of REPTERM_SPECIAL because the meaning of "special" is different between Vim and Nvim. Omit seenModifyOtherKeys as Nvim supports attaching multiple UIs. Omit tests as they send terminal codes. Keep the behavior of API functions.
* | fix: suppress "is a directory" messages with shortmess 'F' (#18296)Gregory Anders2022-04-28
|/ | | | When 'F' is in 'shortmess', don't show messages when editing a directory. This fixes a regression introduced by 0956283.
* Merge pull request #18254 from dundargoc/refactor/remove-char_ubfredl2022-04-27
|\ | | | | refactor: replace char_u variables and functions with char
| * refactor: replace char_u variables and functions with charDundar Goc2022-04-25
| | | | | | | | Work on https://github.com/neovim/neovim/issues/459
* | refactor: enable -Wconversion warning for ex_docmd.c (#18277)dundargoc2022-04-27
| | | | | | | | | | | | * refactor: enable -Wconversion warning for ex_docmd.c Work on https://github.com/neovim/neovim/issues/567
* | refactor(build): remove unused includes #17078kylo2522022-04-26
| | | | | | | | Remove unused includes in src/nvim/buffer.c|h using the IWYU library. Yet another step towards #6371 and #549
* | refactor(terminal)!: drop winpty, require Windows 10 #18253erw72022-04-26
| | | | | | | | | | | | | | | | | | | | | | Problem: winpty is only needed for Windows 8.1. Removing it reduces our build and code complexity. Solution: - Remove winpty. - Require Windows 10. closes #18252
* | fix: has() should preserve v:shell_error #18280Andrey Mishchenko2022-04-26
| | | | | | fixes #18278
* | Merge pull request #18260 from dundargoc/refactor/enable-conversion-warningbfredl2022-04-26
|\ \ | | | | | | refactor: enable -Wconversion warning for funcs.c and userfuncs.c
| * | refactor: enable -Wconversion warning for funcs.c and userfuncs.cDundar Goc2022-04-26
| | | | | | | | | | | | Work on https://github.com/neovim/neovim/issues/567
* | | feat(tui): query terminal for CSI u support (#18181)Gregory Anders2022-04-25
| | | | | | | | | | | | | | | | | | On startup query the terminal for CSI u support and enable it using the escape sequence from kitty's progressive enhancement protocol [1]. [1]: https://sw.kovidgoyal.net/kitty/keyboard-protocol/
* | | vim-patch:8.2.4765: function matchfuzzy() sorts too many itemszeertzjq2022-04-26
| | | | | | | | | | | | | | | | | | | | | Problem: Function matchfuzzy() sorts too many items. Solution: Only put matches in the array. (Yegappan Lakshmanan, closes vim/vim#10208) https://github.com/vim/vim/commit/047a7019b293918343998ccbdfabd48c771f5eef
* | | vim-patch:8.2.4760: using matchfuzzy() on a long list can take a whilezeertzjq2022-04-26
| | | | | | | | | | | | | | | | | | | | | Problem: Using matchfuzzy() on a long list can take a while. Solution: Add a limit to the number of matches. (Yasuhiro Matsumoto, closes vim/vim#10189) https://github.com/vim/vim/commit/9029a6e9931eede1d44f613687a2c01b9fe514ec
* | | vim-patch:8.2.4826: .cshtml files are not recognized (#18259)Christian Clason2022-04-25
|/ / | | | | | | | | Problem: .cshtml files are not recognized. Solution: Use html filetype for .cshtml files. (Julien Voisin, closes vim/vim#10212) https://github.com/vim/vim/commit/1f435dafff2452e0b55d1ca457ce7402e526e92a
* | refactor: enable Wconversion warning for tagDundar Goc2022-04-25
| | | | | | | | Work on https://github.com/neovim/neovim/issues/567
* | fix: show autocmd output when F is in shortmess (#18251)Gregory Anders2022-04-25
|/ | | | | | | | | | | The default value of including F in 'shortmess' has the unfortunate side effect of hiding output from autocommands. This is a common source of confusion and often leads people to think their autocommands are not working when they are. There is a small snippet in the docs for 'shortmess' indicating that the F flag suppresses autocmd output, but it's not easy to find if you don't already know to look for it. This commit removes that behavior of the F flag to make it only suppress file info when opening a new file.
* Merge pull request #18234 from zeertzjq/cursearch-reduce-redrawzeertzjq2022-04-25
|\ | | | | perf: only redraw for CurSearch when it is currently in use
| * perf: only redraw for CurSearch when it is currently in usezeertzjq2022-04-25
| | | | | | | | | | | | The check in redraw_for_cursorline() is not needed because VALID_VIRTCOL is always cleared when the cursor moves to another line, so the check in redraw_for_cursorcolumn() is enough.
* | refactor: convert macros to all-caps (#17895)dundargoc2022-04-24
| | | | | | Closes https://github.com/neovim/neovim/issues/6297
* | refactor: enable Wconversion warning for diff (#18094)dundargoc2022-04-24
| | | | | | Work on https://github.com/neovim/neovim/issues/567
* | Merge pull request #18110 from dundargoc/refactor/remove-char_uGregory Anders2022-04-24
|\ \ | | | | | | refactor: replace char_u variables and functions with char
| * | refactor: add function xstrnsaveDundar Goc2022-04-16
| | | | | | | | | | | | | | | | | | | | | xstrnsave is a clone of vim_strnsave that uses char* instead of char_u*. Its purpose short-term is to help reduce the number of casts and for long-term to replace vim_strnsave as the need to use char_u is eliminated.
| * | refactor: replace char_u variables and functions with charDundar Göc2022-04-16
| | | | | | | | | | | | Work on https://github.com/neovim/neovim/issues/459
* | | refactor: add pure attribute to pure functions (#18165)dundargoc2022-04-24
| |/ |/| | | | | This will allow the compilers that support the pure attribute to make further optimizations.
* | fix/PVS #17863dundargoc2022-04-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix(PVS/V002): disable rule completely V002: "Some diagnostic messages may contain incorrect line number in this file." This particular check seems unreliable. It says on their website https://pvs-studio.com/en/docs/warnings/v002/ that this warning occurs when there are multiline pragmas, but there are none in extmark.c. * fix(PVS/V756): ignore "counter is not used inside a nested loop" warning The nested loop starts with "AutoCmd *ac = ap->cmds" so "ap" is definitely used. * fix(PVS/V560): disable "a part of conditional expression is always true" * fix(PVS/V614): potentially uninitialized variable 'blen' used
* | build: bump Doxyfile to minimum required version 1.9.0 #18118dundargoc2022-04-24
| |
* | vim-patch:8.2.4818: no test for what 8.2.4806 fixeszeertzjq2022-04-25
| | | | | | | | | | | | | | | | Problem: No test for what 8.2.4806 fixes. Solution: Add a test. (closes vim/vim#10727) https://github.com/vim/vim/commit/ac92ab771952b2a9ee39ea6fa5e70e4c072942d5 Test cannot be used because it must use test_setmouse(). Use a Lua test.
* | vim-patch:8.2.4806: a mapping using <LeftDrag> does not start Select modezeertzjq2022-04-25
| | | | | | | | | | | | | | Problem: A mapping using <LeftDrag> does not start Select mode. Solution: When checking for starting select mode with the mouse also do this when there is typeahead. (closes vim/vim#10249) https://github.com/vim/vim/commit/53ef5731480d8b5aa74137a09b3b164b436ed76b
* | vim-patch:8.2.4813: pasting text while indent folding may mess up foldszeertzjq2022-04-24
| | | | | | | | | | | | Problem: Pasting text while indent folding may mess up folds. Solution: Adjust the way folds are split. (Brandon Simmons, closes vim/vim#10254) https://github.com/vim/vim/commit/2c40707baa13a53cac4137ffb8b2ac67f50cea63
* | vim-patch:8.2.4810: missing changes in one filezeertzjq2022-04-24
| | | | | | | | | | | | Problem: Missing changes in one file. Solution: Also change the struct initializers. https://github.com/vim/vim/commit/56dba60216a1bf72c1de299316f4d4ef19e50ad5
* | vim-patch:8.2.4808: unused item in engine structzeertzjq2022-04-24
| | | | | | | | | | | | Problem: Unused item in engine struct. Solution: Remove "expr". Add comment with tags. https://github.com/vim/vim/commit/33d3ce640c63366e26b84c8d6f5798187a258ee2
* | docs: make docstring consistent with parameters #18178dundargoc2022-04-23
| | | | | | Closes: https://github.com/neovim/neovim/issues/12691
* | Merge pull request #18197 from dundargoc/build/clint/python3Gregory Anders2022-04-23
|\ \ | | | | | | build/clint/python3
| * | build(clint): remove all python2-isms with pyupgradeDundar Goc2022-04-20
| | | | | | | | | | | | | | | The script is functionally the same, just with some nicer syntactic sugar thanks to only supporting python3.
| * | build(clint): change shebang to python3Dundar Goc2022-04-20
| | | | | | | | | | | | | | | | | | There are distributions that doesn't symlink python to python3. This will make clint work for these without any additional steps from the user.
* | | vim-patch:8.2.4812: unused struct itemzeertzjq2022-04-23
| | | | | | | | | | | | | | | | | | Problem: Unused struct item. Solution: Remove "lines" match_T. Simplify the code. (closes vim/vim#10256) https://github.com/vim/vim/commit/8279cfe49961b3711c84c66a9954c9f70e9b78c8
* | | vim-patch:8.2.4805: CurSearch used for all matches in current linezeertzjq2022-04-23
| | | | | | | | | | | | | | | | | | Problem: CurSearch used for all matches in current line. Solution: Don't use the non-zero line count. (closes vim/vim#10247) https://github.com/vim/vim/commit/9b36750640e8e89f18afa1446ed80fdbdf0fcac0
* | | refactor(normal): fix most clint warnings (#18196)dundargoc2022-04-21
| | |
* | | vim-patch:8.2.4759: CurSearch highlight does not work for multi-line matchzeertzjq2022-04-21
| | | | | | | | | | | | | | | | | | Problem: CurSearch highlight does not work for multi-line match. Solution: Check cursor position before adjusting columns. (closes vim/vim#10133) https://github.com/vim/vim/commit/693ccd11606b59eb0f81c6c1948679e61ada4022
* | | vim-patch:8.2.4802: test is not cleaned upzeertzjq2022-04-21
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Test is not cleaned up. Solution: Make test clean up after itself. Avoid NUL. (closes vim/vim#10233) https://github.com/vim/vim/commit/7851c69a120ea6ce8c122dd7198adbe5aec83ea5 Adapt test_autocmd_vimgrep() to Nvim.
* | | vim-patch:8.2.4791: events triggered in different order when reusing bufferzeertzjq2022-04-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Autocmd events triggered in different order when reusing an empty buffer. Solution: Call buff_freeall() earlier. (Charlie Groves, closes vim/vim#10198) https://github.com/vim/vim/commit/fef4485ef58d5937b170c6dc69431359469fc9cd Test failure becomes very strange.