aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
| * | feat(api/ui): win_extmarksYatao Li2022-05-03
| |/
* / feat(server): set $NVIM, unset $NVIM_LISTEN_ADDRESS #11009Justin M. Keyes2022-05-03
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PROBLEM ------------------------------------------------------------------------ $NVIM_LISTEN_ADDRESS has conflicting purposes as both a parameter ("the current process should listen on this address") and a descriptor ("the current process is a child of this address"). This contradiction means the presence of NVIM_LISTEN_ADDRESS is ambiguous, so child Nvim always tries to listen on its _parent's_ socket. This is the cause of lots of "Failed to start server" spam in our test/CI logs: WARN 2022-04-30… server_start:154: Failed to start server: address already in use: \\.\pipe\nvim-4480-0 WARN 2022-04-30… server_start:154: Failed to start server: address already in use: \\.\pipe\nvim-2168-0 SOLUTION ------------------------------------------------------------------------ 1. Set $NVIM to the parent v:servername, *only* in child processes. - Now the correct way to detect a "parent" Nvim is to check for $NVIM. 2. Do NOT set $NVIM_LISTEN_ADDRESS in child processes. 3. On startup if $NVIM_LISTEN_ADDRESS exists, unset it immediately after server init. 4. Open a channel to parent automatically, expose it as v:parent. Fixes #3118 Fixes #6764 Fixes #9336 Ref https://github.com/neovim/neovim/pull/8247#issuecomment-380275696 Ref #8696
* refactor: replace char_u variables and functions with charDundar Goc2022-05-03
| | | | Work on https://github.com/neovim/neovim/issues/459
* vim-patch:8.2.4859: wget2 files are not recognized (#18385)Christian Clason2022-05-03
| | | | | Problem: wget2 files are not recognized. Solution: Add patterns to recognize wget2. (Doug Kearns) https://github.com/vim/vim/commit/3a974a89331182139e12386275f052a50c247ecb
* fix(coverity): use xstrndup() instead of vim_strsave() (#18363)zeertzjq2022-05-03
|
* vim-patch:8.2.4858: K_SPECIAL may be escaped twicezeertzjq2022-05-03
| | | | | | Problem: K_SPECIAL may be escaped twice. Solution: Avoid double escaping. (closes vim/vim#10340) https://github.com/vim/vim/commit/db08887f24d20be11d184ce321bc0890613e42bd
* refactor(ui): simplify stdin handlingbfredl2022-05-02
|
* feat(api): support handling stdin stream in remote uihlpr982022-05-02
|
* vim-patch:8.2.4855: robot files are not recognized (#18364)Christian Clason2022-05-02
| | | | | Problem: Robot files are not recognized. Solution: Add patterns for robot files. (Zoe Roux, closes vim/vim#10339) https://github.com/vim/vim/commit/2096a5f128029b1156a035a27c988995db240cea
* vim-patch:8.2.1835: ":help ??" finds the "!!" tag (#18350)dundargoc2022-05-02
| | | | | | | | | | * vim-patch:8.2.1835: ":help ??" finds the "!!" tag Problem: ":help ??" finds the "!!" tag. Solution: Do not translate "?" into ".". (Naruhiko Nishino, closes vim/vim#7114, closes vim/vim#7115) https://github.com/vim/vim/commit/6eb36ade9883f54c84c739c6a3504ddfa3343063 Change test because patch 8.2.1794 hasn't been ported yet.
* vim-patch:8.2.3306: unexpected "No matching autocommands" (#17912)dundargoc2022-05-02
| | | | | | Problem: Unexpected "No matching autocommands". Solution: Do not give the message when aborting. Mention the arguments in the message. (closes vim/vim#8690) https://github.com/vim/vim/commit/1b154ea121d8374a129c3e30d50fa9742cd5faa1
* fix(api): preserve `cmdmod` on `nvim_parse_cmd`Famiu Haque2022-05-02
|
* Merge pull request #18294 from mhinz/mac/simpler-locale-fallbackJames McCoy2022-05-01
|\ | | | | fix(mac): use same $LANG fallback mechanism as Vim
| * fix(mac): use same $LANG fallback mechanism as VimMarco Hinz2022-04-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In a locale "en_US", "en" is the language and "US" is the region. Before this change, we were too clever for our own good and tried to handle the region as well. But if the macOS primary language is set to "English" and the region to "Norway", we would end up with "en_NO", which is a locale that does not exist. Now we only take the language into account. Taking the example from above would yield "en_US", which is a sensible fallback. If the region is important to you, set $LANG and the more specific LC_* variables in your shell config or alternatively use `:help :language`. References https://github.com/neovim/neovim/issues/18292
* | refactor: replace char_u variables and functions with charDundar Goc2022-04-30
| | | | | | | | Work on https://github.com/neovim/neovim/issues/459
* | Merge pull request #18231 from famiu/feat/api/parse_cmdlinebfredl2022-04-30
|\ \ | | | | | | feat(api): `nvim_parse_cmd`
| * | feat(api): add `nvim_parse_cmdline`Famiu Haque2022-04-30
| | | | | | | | | | | | Adds an API function to parse a command line string and get command information from it.
* | | vim-patch:8.2.4849: Gleam filetype not detected (#18326)Christian Clason2022-04-30
| | | | | | | | | | | | | | | | | | Problem: Gleam filetype not detected. Solution: Add a pattern for Gleam files. (Mathias Jean Johansen, closes vim/vim#10326) https://github.com/vim/vim/commit/917c32c4f75351061a773cd5bc5b6f42c7d10e62
* | | Merge pull request #18323 from zeertzjq/vim-8.1.2191zeertzjq2022-04-30
|\ \ \ | |/ / |/| | vim-patch:8.1.2191,8.2.4848: mappings for completion keys not ignored
| * | vim-patch:8.2.4848: local completion with mappings and simplification not ↵zeertzjq2022-04-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | working Problem: Local completion with mappings and simplification not working. Solution: Fix local completion <C-N>/<C-P> mappings not ignored if keys are not simplified. (closes vim/vim#10323) https://github.com/vim/vim/commit/ee4460306917431d0d17a7cb11c6646f4c6540b6
| * | vim-patch:8.1.2191: when using modifyOtherKeys CTRL-X mode may not workzeertzjq2022-04-30
| | | | | | | | | | | | | | | | | | Problem: When using modifyOtherKeys CTRL-X mode may not work. Solution: Recognize a control character also in the form with a modifier. https://github.com/vim/vim/commit/88d3d09e07dbe0e3ea450bc554e2aadc451450d2
* | | refactor: replace char_u variables and functions with char (#18288)dundargoc2022-04-30
|/ / | | | | Work on https://github.com/neovim/neovim/issues/459
* | fix(tui): disable extended keys before exiting alternate screen (#18318)zeertzjq2022-04-30
| |
* | vim-patch:8.2.0144: some mapping code is not fully tested (#18313)zeertzjq2022-04-30
| | | | | | | | | | Problem: Some mapping code is not fully tested. Solution: Add more test cases. (Yegappan Lakshmanan, closes vim/vim#5519) https://github.com/vim/vim/commit/c2a60ae10e7badad9186de59a9994fc8c9f539e0
* | fix(input): only disable mapped CTRL-C interrupts when getting input (#18310)zeertzjq2022-04-30
| |
* | vim-patch:8.2.4845: duplicate codezeertzjq2022-04-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Duplicate code. Solution: Move code below if/else. (closes vim/vim#10314) https://github.com/vim/vim/commit/590f365f91511c164253c5b5812d4d0fc4a238d6 N/A patches for version.c: vim-patch:8.2.4844: <C-S-I> is simplified to <S-Tab> Problem: <C-S-I> is simplified to <S-Tab>. Solution: Do not simplify CTRL if there is also SHIFT. (closes vim/vim#10313) https://github.com/vim/vim/commit/758a8d199988b5b25566b2820db60dc2c9de3e58 vim-patch:8.2.4846: termcodes test fails Problem: Termcodes test fails. Solution: use CTRL-SHIFT-V to insert an unsimplified key. (closes vim/vim#10316) https://github.com/vim/vim/commit/bad8a013c238595aa206690210eb1367fbc878f9
* | Merge pull request #18162 from dundargoc/refactor/unctustifybfredl2022-04-29
|\ \ | | | | | | refactor/uncrustify
| * | refactor(uncrustify): change rules to better align with the style guideDundar Goc2022-04-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add space around arithmetic operators '+' and '-'. Remove space between back-to-back parentheses, i.e. ')(' vs. ') ('. Remove space between '((' or '))' of control statements. Add space between ')' and '{' of control statements. Remove space between function name and '(' on function declaration. Collapse empty blocks between '{' and '}'. Remove newline at the end of the file. Remove newline between 'enum' and '{'. Remove newline between '}' and ')' in a function invocation. Remove newline between '}' and 'while' of 'do' statement.
| * | refactor(uncrustify): format all c code under /src/nvim/Dundar Goc2022-04-29
| | |
| * | refactor(uncrustify): disable formatting in problematic code sectionsDundar Goc2022-04-29
| | |
* | | feat(mappings): do not simplify the rhs of a mappingzeertzjq2022-04-29
| | |
* | | feat(mappings): allow special keys and modifiers in <Cmd> mappingzeertzjq2022-04-29
|/ /
* | fix(mappings): fix double-free when unmapping simplifiable Lua mappingzeertzjq2022-04-29
| |
* | feat(mappings): do not replace existing mapping for simplified formzeertzjq2022-04-29
| |
* | vim-patch:8.2.4837: modifiers not simplified when timed outzeertzjq2022-04-29
| | | | | | | | | | | | | | Problem: Modifiers not simplified when timed out or using feedkeys() with 'n" flag. Solution: Adjust how mapped flag and timeout are used. (closes vim/vim#10305) https://github.com/vim/vim/commit/68a573ce2b996602a86b14d9b258ebb8c657604f
* | vim-patch:8.2.4833: failure of mapping not checked forzeertzjq2022-04-29
| | | | | | | | | | | | Problem: Failure of mapping not checked for. Solution: Check return value of ins_typebuf(). (closes vim/vim#10299) https://github.com/vim/vim/commit/12e21e387b5bbc928097abf1c189b7dc665838fc
* | vim-patch:8.2.4829: a key may be simplified to NULzeertzjq2022-04-29
| | | | | | | | | | | | | | Problem: A key may be simplified to NUL. Solution: Use K_ZERO instead. Use macros instead of hard coded values. (closes vim/vim#10290) https://github.com/vim/vim/commit/17c95d9608370559441bb73941ba6d9a4b6b26bd
* | vim-patch:8.2.4828: fix for unmapping simplified key not fully testedzeertzjq2022-04-29
| | | | | | | | | | | | Problem: Fix for unmapping simplified key not fully tested. Solution: Add a test case. (closes vim/vim#10292) https://github.com/vim/vim/commit/abeb09b2c53054513812d1e56716e2a5abe8f354
* | vim-patch:8.2.4827: typo in variable namezeertzjq2022-04-29
| | | | | | | | | | | | Problem: Typo in variable name. (Gabriel Dupras) Solution: Rename the variable. https://github.com/vim/vim/commit/87f74106f96737e7b8ceaafe1a131aa718077de6
* | vim-patch:8.2.4824: expression is evaluated multiple timeszeertzjq2022-04-29
| | | | | | | | | | | | Problem: Expression is evaluated multiple times. Solution: Evaluate expression once and store the result. (closes vim/vim#10278) https://github.com/vim/vim/commit/23d5770ef5e2f5c6d20d123303b81327045e5a1e
* | vim-patch:8.2.4819: unmapping simplified keys also deletes other mappingzeertzjq2022-04-29
| | | | | | | | | | | | Problem: Unmapping simplified keys also deletes other mapping. Solution: Only unmap a mapping with m_simplified set. (closes vim/vim#10270) https://github.com/vim/vim/commit/a4e3332650021921068ef12923b4501c5b9918cb
* | vim-patch:8.2.4504: when there is a partially matching map full map may not workzeertzjq2022-04-29
| | | | | | | | | | | | | | | | | | | | Problem: When there is a partially matching map and modifyOtherKeys is active a full map may not work. Solution: Only simplify modifiers when there is no matching mapping. (closes vim/vim#8792) https://github.com/vim/vim/commit/196c3850dbe95247f7aa1b0000a5cae625a99ef2 Omit test as it sends terminal codes. Use a Lua test instead.
* | vim-patch:8.2.3595: check for signed overflow might not work everywherezeertzjq2022-04-29
| | | | | | | | | | | | Problem: Check for signed overflow might not work everywhere. Solution: Limit to 32 bit int. (closes vim/vim#9043, closes vim/vim#9067) https://github.com/vim/vim/commit/0d5a12ea041c112b06b1aafde38846ae4cff8f4c
* | vim-patch:8.2.2728: special key names don't work if 'isident' is clearedzeertzjq2022-04-29
| | | | | | | | | | | | | | | | | | Problem: Special key names don't work if 'isident' is cleared. Solution: Add vim_isNormalIDc() and use it for special key names. (closes vim/vim#2389) https://github.com/vim/vim/commit/e3d1f4c982bd0fe05496448d7868268c75ff7bfb Code is N/A as Nvim already has ascii_isident(), so just port the test.
* | vim-patch:8.1.2346: CTRL-R CTRL-R doesn't work with modifyOtherKeyszeertzjq2022-04-29
| | | | | | | | | | | | | | | | | | Problem: CTRL-R CTRL-R doesn't work with modifyOtherKeys. Solution: Allow key codes when fetching argument for CTRL-R. (closes vim/vim#5266) Also fix CTRL-G in Insert mode. https://github.com/vim/vim/commit/38571a04b4eb2853f46df8884750bcb9a8115db8 Omit test as it sends terminal codes. Use a Lua test instead.
* | vim-patch:8.2.0919: merging modifier for modifyOtherKeys is done twicezeertzjq2022-04-29
| | | | | | | | | | | | | | | | | | Problem: Merging modifier for modifyOtherKeys is done twice. Solution: Remove the merging done in vgetc(). https://github.com/vim/vim/commit/673fc3e23f09095d17f0095c4323958041b2d0d2 Omit ex_getln.c change as it was removed in patch 8.2.2084, so no_reduce_keys is still not needed in Nvim.
* | vim-patch:8.2.0916: mapping with partly modifyOtherKeys code does not workzeertzjq2022-04-29
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Mapping with partly modifyOtherKeys code does not work. Solution: If there is no mapping with a separate modifier include the modifier in the key and then try mapping again. (closes vim/vim#6200) https://github.com/vim/vim/commit/975a880a1389e8ce6dea8d66a7c109140b2f94ec Cherry-pick applicable part of put_string_in_typebuf(). Revert related changes from 10a5825. Use KEYLEN_PART_KEY for incomplete modifier sequence. Omit test as it sends terminal codes. Use a Lua test instead.
* | revert: "refactor: Remove allow_keys global (#6346)"zeertzjq2022-04-29
| |
* | vim-patch:8.2.0867: using \{xxx} for encoding a modifier is not nicezeertzjq2022-04-29
| | | | | | | | | | | | | | | | | | Problem: Using \{xxx} for encoding a modifier is not nice. Solution: Use \<*xxx> instead, since it's the same as \<xxx> but producing a different code. https://github.com/vim/vim/commit/fccd93f0917234b962ce07d1df3adf9d7105936f Use this notation in langmap_spec.
* | vim-patch:8.2.0855: GUI tests fail because the test doesn't use a modifierzeertzjq2022-04-29
| | | | | | | | | | | | | | | | Problem: GUI tests fail because the test doesn't use a modifier. Solution: Add "\{xxx}" to be able to encode a modifier. https://github.com/vim/vim/commit/ebe9d34aa07037cff2188a8dd424ee1f59cbb0bf Change macros to enums to use them in unit tests.