aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
...
* 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.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.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.
* test: revert test and doc changes from #6724, add a test for #6716zeertzjq2022-04-29
| | | | Multi-char 'pastetoggle' now works without breaking character-find.
* 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.
* 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.
* 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.
* 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.
* 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: has() should preserve v:shell_error #18280Andrey Mishchenko2022-04-26
| | | fixes #18278
* fix(lsp): fix unnecessary buffers being added on empty diagnostics (#18275)ii142022-04-26
| | | | | Some language servers send empty `textDocument/publishDiagnostics` messages after indexing the project with URIs corresponding to unopened buffers. This commit guards against opening buffers corresponding to empty diagnostics.
* test: correct order of arguments to eq() and neq()zeertzjq2022-04-26
|
* 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/
* fix(ci): workaround bug in msgpackparse() on windows caused by api level bumpbfredl2022-04-25
|
* 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.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
* fix(lua): don't mutate opts parameter of vim.keymap.del (#18227)Andrey Mishchenko2022-04-23
| | | | | | `vim.keymap.del` takes an `opts` parameter that lets caller refer to and delete buffer-local mappings. For some reason the implementation of `vim.keymap.del` mutates the table that is passed in, setting `opts.buffer` to `nil`. This is wrong and also undocumented.
* fix(treesitter): create new parser if language is not the same as cached ↵Chinmay Dalal2022-04-22
| | | | parser (#18149)
* 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
* test: add a Lua functional test for NoName buffer event orderCharlie Groves2022-04-21
|
* vim-patch:8.1.1756: autocommand that splits window messes up window layoutzeertzjq2022-04-21
| | | | | | | | | | | Problem: Autocommand that splits window messes up window layout. Solution: Disallow splitting a window while closing one. In ":all" give an error when moving a window will not work. https://github.com/vim/vim/commit/1417c766f55e5959b31da488417b7d9b141404af Expected error number was changed to E242 in Vim in patch 8.2.1183, and patch 8.2.2420 (which has already been ported) made the test no longer throw E249 in Vim, so just use E242 in the test.
* vim-patch:8.2.0358: insufficient testing for indent.czeertzjq2022-04-21
| | | | | | | | | Problem: Insufficient testing for indent.c. Solution: Add indent tests. (Yegappan Lakshmanan, closes vim/vim#5736) https://github.com/vim/vim/commit/bd7206e02c957f0619e68e1628e2a3e91dd41e06 Cherry-pick Test_ex_mode() changes from Vim patches 8.2.{0342,0347}. Reorder test_expand_func.vim to match upstream.
* Merge pull request #18189 from zeertzjq/vim-8.2.4795zeertzjq2022-04-21
|\ | | | | vim-patch:8.2.{4795,4796,4801}: 'cursorbind' scrolling depends on whether 'cursorline' is set
| * vim-patch:8.2.4801: fix for cursorbind fix not fully testedzeertzjq2022-04-21
| | | | | | | | | | | | Problem: Fix for cursorbind fix not fully tested. Solution: Add another test case. (Christian Brabandt, closes vim/vim#10240) https://github.com/vim/vim/commit/3fd7480cd25f1e939fc2362e0644d497bcc81b71
| * vim-patch:8.2.4795: 'cursorbind' scrolling depends on whether 'cursorline' ↵zeertzjq2022-04-21
| | | | | | | | | | | | | | | | | | is set Problem: 'cursorbind' scrolling depends on whether 'cursorline' is set. Solution: Always call validate_cursor(). (Christian Brabandt, closes vim/vim#10230, closes vim/vim#10014) https://github.com/vim/vim/commit/2c645e8b00641f504072f35e061b7392ed41f491
* | vim-patch:8.2.4724: current instance of last search pattern not easily spottedzeertzjq2022-04-21
|/ | | | | | | | | Problem: Current instance of last search pattern not easily spotted. Solution: Add CurSearch highlighting. (closes vim/vim#10133) https://github.com/vim/vim/commit/a43993897aa372159f682df37562f159994dc85c This fixes CurSearch highlight for multiline match. Omit screen redrawing code because Nvim redraws CurSearch differently.
* fix(diagnostic): use nvim_exec_autocmds to trigger DiagnosticChanged (#18188)Gregory Anders2022-04-20
| | | | | Use nvim_exec_autocmds to issue the DiagnosticChanged autocommand, rather than nvim_buf_call, which has some side effects when drawing statuslines.
* Merge pull request #18145 from bfredl/term_optbfredl2022-04-20
|\ | | | | feat(api): allow remote UI to set terminal options
| * feat(api): add tests for setting terminal ui optionsbfredl2022-04-17
| |
* | Merge pull request #18157 from famiu/feat/undo!bfredl2022-04-19
|\ \ | | | | | | feat: add `undo!`
| * | feat: add `undo!`Famiu Haque2022-04-20
| | | | | | | | | | | | Allows using `undo!` to undo changes and remove them from the undo-tree. Can only be used for moving backwards in the same undo branch.
* | | Merge pull request #18081 from famiu/feat/highlight/cursearchbfredl2022-04-19
|\ \ \ | |/ / |/| | feat(highlight): implement CurSearch highlight
| * | feat(highlight): implement CurSearch highlightFamiu Haque2022-04-17
| |/ | | | | | | Adds a `CurSearch` highlight group to highlight the current search result under the cursor.
* | test: add a test for #18135zeertzjq2022-04-17
| |
* | fix(paste): ignore mappings in Cmdline mode (#18114)Eden Zhang2022-04-17
|/
* NVIM 0.7bfredl2022-04-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BREAKING CHANGES * Support for Python 2 is dropped. For Python 3, the minimum supported version is 3.6. Legacy `:pythonx` commands are still available, and always uses the python 3 provider. * api: Existing usages of `nvim_buf_set_text` that use negative line numbers will be off-by-one. * highlight: signature of `vim.highlight.range` was changed. * input: distinguish between some input keys which previously were synonyms. This will break some exiting mappings. - `<cr>`, `<tab>` and `<esc>` are no longer considered equivalent to `<c-m>`, `<c-i>` and `<c-[`> respectively. In case the terminal or GUI supports distinguishing these keys, these can now be mapped separately. But even if the terminal only can send one code you might still need to change what variant is used in the config. FEATURES Core APIs: * api: add support for lua function & description in keymap * api: add api and lua autocmds * api: nvim_clear_autocmd * api: pass args table to autocommand callbacks * api: remove Lua autocommand callbacks when they return true * api: implement nvim_{add,del}_user_command * api: implement nvim_buf_get_text * api: add nvim_get_option_value * highlight: ns=0 to set :highlight namespace * highlight: support for blend in nvim_set_hl * api: add strikethrough, nocombine to set_hl * api: relax statusline fillchar width check Lua: * lua: add vim.keymap * lua: add vim.spell * lua: add proper support of luv threads * lua: make :lua =expr print result of expr * lua: handle lazy submodules in `:lua vim.` wildmenu completion * lua: add notify_once() * lua: add support for multiple optional types in vim.validate * lua: show proper verbose output for lua configuration * lua: more conversions between LuaRef and Vim Funcref * lua: support converting nested Funcref back to LuaRef * call __tostring on lua errors if possible before reporting to user * filetype.lua * filetype.lua: add support for files under .git * filetype.lua: add support for patch files * filetype.lua: add support for tmux.conf files * filetype.lua: add support for txt files * filetype.lua: Add typescript extension to filetype detection * filetype.lua: fix .cc file not detected * filetype.lua: fix .env file not detected * filetype: convert patterns for mail buffers * filetype: support scripts.vim with filetype.lua UI and decorations: * decorations: support signs * extmarks: add strict option * api: expose extmark more details * api: expose extmark right_gravity and end_right_gravity * use nvim_buf_set_extmark for vim.highlight * statusline: support multibyte fillchar * add support for global statusline Treesitter: * ui: allow conceal to be defined in decorations and tree-sitter queries * tree-sitter: allow Atom-style capture fallbacks * treesitter: add more default groups to highlight map * treesitter: multiline match predicates * treesitter: set allocator when possible * ts: add support for multiline nodes in get_node_text * ts: expose minimum language version to lua * runtime: add query filetype LSP and diagnostic: * diagnostic: add "code" to the diagnostic structure * diagnostic: allow retrieving current diagnostic config * lsp,diagnostic: open folds in jump-related functions * lsp: add buf_detach_client * lsp: add handler for workspace/workspaceFolders * lsp: dynamically generate list title in response_to_list * lsp: enable default debounce of 150 ms * lsp: skip or reduce debounce after idle * lsp: use `vim.ui.select` for selecting lsp client Initial work to support remote TUI (and ui client library): * ui_client: connect to remote ui * ui_client: implement event handlers * ui_client: handle resize events * ui_client: implement async paste handling * ui_client: pass user input to remote server * --headless: add on_print callback to stdioopen * add autocommand event when search wraps around * add vim.tbl_get * autocmd: add Recording autocmds * autocmd: populate v:event in RecordingLeave * completion: support selecting item via API from Lua mapping * eval/method: partially port v8.1.1993 * eval/method: partially port v8.1.1996 * eval/method: partially port v8.1.2004 * eval: partially port v8.2.0878 * eval: port emsg from v8.2.3284 * events: add DirChangedPre * events: support SIGWINCH for Signal event * hardcopy: check gui colours for highlights first * highlight: support color names for cterm * ignore nore on <Plug> maps * input: delay some conversions to vgetc() * input: enable <tab>/<c-i>, <cr>/<c-m>, <esc>/<c-[> pairs unconditionally * keymap: add F38-F63 keys * keymap: return nil from an expr keymap * mappings: considering map description when filtering * provider: remove support for python2 and python3.[3-5] * remote: add basic --remote support * runtime: import cleanadd.vim from Vim * runtime: include Lua in C++ ftplugin * runtime: new checkhealth filetype * term: use vterm_output_set_callback() * test: use nvim_exec in helpers.source() * trigger ModeChanged for terminal modes * tui: add error logging * tui: add support for `CSI 4 : [2,4,5] m` * tui: enable CSI u keys * vim-patch.sh: support additional args for -s Performance Improvements * lsp: request only changed portions of the buffer in changetracking * only redraw concealed line if cursor has moved horizontally * pre-compile embedded Lua source into bytecode * screen: reduce cursorline redrawing when jumping around * treesitter: cache query parsing * api: elide luaref copy when setting 'callback' in nvim_set_keymap BUG FIXES * --headless: do not block on press-enter prompts when no UI * <Nop> not shown in :map commands * add forkpty for SunOS variants * add STRNLEN compatability macro * anonymous sid not working * api, lua: return NIL on failure to find converted function * api/nvim_win_call: share common win_execute logic * api: allow empty list for cterm in nvim_set_hl * api: allow nvim_buf_set_extmark to accept end_row key * api: convert blob to NUL-terminated API string * api: correctly handle negative line numbers for nvim_buf_set_text * api: correctly pass f-args for nvim_create_user_command * api: delete all autocmds with the same ID * api: force redefinition of user commands by default * api: highlight attribute for underline * api: improve autocmd error handling * api: include event in get_autocmds * api: make nil value in nvim_set_option_value clear local value * api: nvim__set_hl_ns causes extra redraws * api: nvim_win_set_cursor() redraw for cursorline and statusline * api: re-route nvim_get_runtime_file errors * api: use changedir_func() in nvim_set_current_dir() * api: validate command names in nvim_add_user_command * api: validate user_command name * append test for checking zero width node range * aucmd_win: always make aucmd_win the last window * aucmd_win: ensure aucmd_win stays floating * autocmd: clean up autocmds only when needed * autocmd: restore autocmd showing behavior * autoload variables not loaded with vim.g & nvim_get_var * bounds check for underdot * build: check for empty value of LUAC_PRG * build: check that LuaJIT has required modules for compilation * build: install luajit modules on windows * channel: fix channel consistency * check for interrupt in nvim_echo, write_msg and nlua_print * checkhealth: make provider checkhealth output more consistent * ci/backport: check for event_name == "pull_request_target" * ci: provide necessary permissions for calling workflow * clang/'Dead store': do not assign endcol * close floating windows when calling win_close() * completion: prevent K_LUA from closing pum * completion: update submode message when selecting from API * correct vertical dragging room calculation with global statusline * coverity/175977: big parameter passed by value * coverity/188749: nullify pointer to fix use-after-free * coverity/340720: error if nvim_eval_statusline given invalid winid * coverity: dead code and operands don't affect result * decorations: do not put empty virt_text * define NAME_MAX from _XOPEN_NAME_MAX * diagnostic: allow setting arbitrary config values * diagnostic: assert that diagnostics have line number and column * diagnostic: clamp diagnostics on negative line numbers * diagnostic: escape special chars in file names * diagnostic: improve validation for list arguments * diagnostic: make `open_float` respect global diagnostic options * diagnostic: only set default handler config if unset * diagnostic: resolve nil opts tables * diagnostic: respect "if_many" source option for virtual text * diagnostic: set effective buffer number for DiagnosticChanged autocmd * diagnostic: set effective buffer number in autocmd (again) * diagnostic: use botright copen for qflist * diff: make algorithm work for vim.diff * do not cast offset to char_u * do not pass aucmd to the callback * do not save K_EVENT as lastc in Insert mode * docs: add bufnr and user_data to diagnostic-structure * docs: spelling in new underlines docs * don't include pty.h on SunOS * don't use cfsetspeed, use i and o variants * enable filetype detection and syntax highlighting with --clean * eval/method: add missing method support for existing built-ins * eval: v:lua support for `-` in module names * event-loop: call vpeekc() directly first to check for character * event-loop: check if executed register has ended * event-loop: duplicate display updating logic in vgetorpeek() * events: make v:event readonly in more events * ex_normal: spam \n in Ex mode only if in Cmdline mode * extmarks: fix signs * extmarks: splice extmarks on accepting spell * filetype.lua: always return a string in getline helper function * filetype: expand tildes in filetype patterns * filetype: fix foam pattern detection * filetype: match negative priority patterns after extensions * filetype: match on <afile> rather than <abuf> * filetype: normalize slashes in file paths * filetype: set default ft_ignore_pat in filetype.lua * float: do not switch window before deleting last listed buffer * float: don't always switch window when deleting last listed buffer * float: handle buffer deletion with floating windows * float: make laststatus=1 behave consistently with floating windows * healthcheck: handle empty reports * health: do not run external processes in a shell * highlight: accept NONE as a color name * highlight: allow globals to be cleared * highlight: always update window highlight if highlight changed * inccommand: do not change reg_prev_sub when previewing * input: do not translate scroll keys into multiclicks * input: fix clearing of reg_executing * input: never escape CSI bytes * input: put modifiers back into typeahead buffer when needed * input: remove reinterpreted ALT/META chords from recorded macro * keymap: don't coerce false to '' * keywordprg: retain terminal buffer after K * line continuation: set growsize to correct value * lsp and diagnostic highlight priority * lsp: always split text edits on \r, \r\n, and \n * lsp: always use target bufnr in location handler * lsp: avoid attaching to unloaded buffers * lsp: avoid nil workspace/symbol query * lsp: call config on_exit handler before context is cleared * lsp: correct prefix when filterText is present * lsp: correctly align start and end range to codepoints during incremental sync * lsp: create lsp requests with position offsets considering client encoding * lsp: ensure pending changes are flushed on skipped debounce * lsp: explicitly pass bufnr in didSave handler * lsp: fetch offset_encoding from client in references * lsp: fix `nil`-index behavior for UTF-8 in `_str_*index_enc` methods * lsp: fix applying multiple out-of-range TextEdits * lsp: fix lookup of boolean values in workspace/configuration * lsp: forward offset_encoding in rename handler * lsp: forward offset_encoding to apply_text_edits * lsp: handle insertion of previous line * lsp: handle negative activeSignature in signatureHelp * lsp: only send valid params in executeCommand * lsp: pass offset_encoding in formatexpr() * lsp: progress handlers should return vim.NIL on error * lsp: resolve bufnr for get_lines * lsp: resolve nil bufnr * lsp: respect all of 'fixeol', 'eol', and 'binary' applying edits * lsp: set tabSize from 'shiftwidth', not 'softtabstop' * lsp: start incremental sync range at previous newline character * lsp: strictly enforce passing offset encoding * lsp: suppress ContentModified errors from UI * lsp: use "text" filetype for plaintext * lsp: use botright copen for all handlers * lua: don't use nlua_error when exiting early * lua: print multiple return values with =expr * lua: restore priority of the preloader * lua: stricter type check when calling API function * make mode() return correct value in ex mode * man.vim: fix search function on some systems * man.vim: support calling :Man without a section again * msgpack#strptime: use calendar.timegm to get seconds since epoch * ops: str_to_reg passing NULL to memcpy * options: disallow empty 'fdc' and 'scl' * paste: avoid edges cases caused by empty chunk * paste: deal with eol and eof in Visual mode * paste: deal with trailing new line in chunk * paste: don't move cursor past the end of pasted text in Normal mode * paste: escape control characters in Cmdline mode * paste: use getcmdtype() to determine whether in cmdline mode * prompt: add missing changes from v8.1.0036 * pty_process_win/wait_eof_timer_cb: also check for proc->out.did_eof * pum_redraw: use grid_puts_len() to truncate the text * PVS/V1019: compound assignment expression is used inside condition * PVS/V560: ignore false "conditional expression is always false" * PVS/V583: the '?:' operator always returns one and the same value * query.lua: check empty table for lines * quickfix: avoid O(N^2) when filling from string typval * remote: make compile again * remote: report connection error, missing return values * remote: report on missing wait commands, typecheck lua results * remote: respect silent in error reporting * remote: use STATIC_CSTR_AS_STRING * resolve nil arguments to API functions * respect os_proc_children rv of pid not found * runtime: add missing release metadata * runtime: add syntax file for query * runtime: check markdownError before syn-clear * screen: do not do syntax highlighting at filler or folded lines * screen: do not draw filler lines post eof if already at last row * screen: do not update syntax_last_parsed when drawing folded line * screen: don't put empty sign text in line number column * screenpos, float: add top and left border adjustment * screen: truncate double-width character correctly * screen: truncate when overwriting right half of a double-width char * set nested before executing callback * set RedrawingDisabled before entering aucmd_win * signcol: always trigger a redraw * signcol: handle edge case with maximum value * signcol: update cursor when signcol changes * skip libutil on SunOS * substitute: properly check for empty command line * syntax.c: correct hunk from Vim patch 8.0.0647 * syntax: remove trailing spaces in vim.vim * tabpage: correct check for failure to close window * termdebug: handle exiting during startup properly * terminal: correctly forward mouse events * terminal: fix resize crash with pending scrollback * terminal: ignore left-release mouse action * terminal: return early if there are no invalid rows * terminal: use coladvance() to calculate buffer cursor position * test: only use buffer completion in popupmenu timer test * tests: update legacy tab switch test to be sane * translation: po file for Russian * translation: po file for Ukrainian * ts: escape lang when loading parsers * tui: avoid using uninitialized memory in kitty * tui: correct CSI sequence * tui: end streamed paste correctly when key buffer is empty * tui: remove `ESC NUL` forced escape * ui: close floating window on BufLeave event * ui: inccomand performance degradation * ui: make window resize commands manage cmdheight * update last cursor on first CursorMoved * uri: change scheme pattern to not include the comma character * use normal! <C-L> in default <C-L> mapping * vim-patch.sh: fix N/A files patterns * win_close: count the window the be closed instead of curwin * win_split_ins: do not fail when oldwin is not valid
* docs: typo fixes (#17859)dundargoc2022-04-15
| | | | | | | | | | Co-authored-by: Elias Alves Moura <eliamoura.alves@gmail.com> Co-authored-by: venkatesh <shariharanvenkatesh@gmail.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: Vikas Raj <24727447+numToStr@users.noreply.github.com> Co-authored-by: Steve Vermeulen <sfvermeulen@gmail.com> Co-authored-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com> Co-authored-by: rwxd <rwxd@pm.me> Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
* fix(lsp): fix lookup of boolean values in workspace/configuration (#18026)Fredrik Ekre2022-04-15
|
* fix(api): correctly pass f-args for nvim_create_user_command (#18098)Gregory Anders2022-04-13
| | | | | Skip runs of whitespace and do not include `\` characters when followed by another `\` or whitespace. This matches the behavior of <f-args> when used with `:command`.
* test: unskip tests skipped in #14661zeertzjq2022-04-13
|
* vim-patch:8.2.4739: accessing freed memory after WinScrolled autocmd event ↵zeertzjq2022-04-12
| | | | | | | | (#18090) Problem: Accessing freed memory after WinScrolled autocmd event. Solution: Check the window pointer is still valid. (closes vim/vim#10156) Remove the argument from may_trigger_winscrolled(). https://github.com/vim/vim/commit/d58862d18f091d3c14fa3647e724ef7eea1ecefa
* test: properly test WinScrolled eventzeertzjq2022-04-12
|
* fix(events): make v:event readonly in more events (#18070)zeertzjq2022-04-11
| | | | | | | This makes v:event readonly in these four events: - ChanInfo - ChanOpen - RecordingLeave - TermClose
* Merge pull request #18071 from gpanders/create_ucGregory Anders2022-04-10
|\ | | | | refactor!: Rename nvim_add_user_command to nvim_create_user_command
| * refactor!: rename nvim_add_user_command to nvim_create_user_commandGregory Anders2022-04-10
| |
* | fix(tui)!: remove `ESC NUL` forced escape (#17198)zeertzjq2022-04-11
| | | | | | | | | | | | | | | | | | | | This make Nvim recognize `ESC NUL` as <M-C-Space>, as many terminal emulators (including libvterm) send <M-C-Space> as `ESC NUL`. There is already another unambiguous way to encode a `ESC` key supported by libtermkey: `ESC [ 2 7 u`, which is a `CSI u` sequence. If one still wants to use `ESC NUL` as `ESC`, they can just map <M-C-Space> to <Esc>.
* | feat(keymap): add F38-F63 keys (#17893)zeertzjq2022-04-11
|/