aboutsummaryrefslogtreecommitdiff
path: root/test/functional/fixtures
Commit message (Collapse)AuthorAge
* refactor(runtime): handle pack/foo/start/bar/after dirs properlyBjörn Linse2021-09-18
| | | | | | | | The order should be: XDG_CONFIG_HOME/nvim XDG_DATA_HOME/nvim/site/pack/foo/start/bar/ XDG_CONFIG_HOME/nvim/after XDG_DATA_HOME/nvim/site/pack/foo/start/bar/after
* feat(lsp): support textDocument/prepareRename (#15514)Zi How Poh2021-09-08
|
* feat(terminal): TermClose: set exit code in v:event.status #15406Gregory Anders2021-08-20
| | | Closes #4713
* NVIM v0.5.0v0.5.0Björn Linse2021-07-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This release represents ~4000 commits since v0.4.4, the previous non-maintenance release. Highlights include builtin support for LSP, new APIs for extended marks (with byte resolution tracking of changes) and buffer decorations, as well as vast improvements to lua as a plugin and configuration language. Experimental support for tree-sitter as a syntax engine is also included, building on the new core APIs for byte tracking and decorations. FEATURES: New API functions: nvim_exec: execute multiline vim script blocks nvim_get_hl_id_by_name: Gets a highight definition by name nvim_exec_lua: new name for nvim_execute_lua nvim_notify: Notify the user with a message nvim_get_runtime_file: Find files in runtime directories nvim_get_all_options_info: Get option information for all options nvim_get_option_info: Get option information for one option nvim_echo: Echo a message with highlights nvim_open_term: Open a virtual terminal in a buffer nvim_chan_send: send data to a channel. (like chansend() but supports lua strings) nvim_set_decoration_provider: callback driven decoration API for a namespace nvim_buf_set_text: Set/replace a character range in a buffer nvim_buf_delete: Delete the buffer. |:bwipeout| nvim_buf_get_extmark_by_id: Returns position for a given extmark id. nvim_buf_get_extmarks: get extmarks in traversal order. nvim_buf_set_extmark: Creates or updates an extmark. nvim_buf_del_extmark: Removes an extmark. nvim_buf_call: call a function with buffer as temporary current buffer nvim_win_hide: Closes the window and hide the buffer it contains |:hide| nvim_win_call: Calls a function with window as temporary current window. New UI events: redraw.screenshot redraw.win_viewport Lua: 767cd8b17 #12235 startup: add init.lua as an alternative user config 687eb0b39 #14686 feat(startup): Source runtime/plugin/**/*.lua at startup #14686 runtime: allow lua in various runtime search paths such as syntax/ ftdetect/ indent/ ftplugin/ compiler/ colors/ 43956dea5 #13479 lua: Add vim.opt and fix scopes of vim.o 1407899c3 #12268 lua: Add buffer, window and tab accessors be662fe5c lua: vim.wait implementation 2b663c061 #14213 viml: embed Lua syntax highlighting 901dd79f6 feat: add completion to ':lua' 82688973 lua: complete methods in metatables 342148525 runtime: propagate lua parsing errors while using "require" aaca2c1c4 #13276 feat(lua): improve error message to make it actionable c60c7375f startup: handle autoload and lua packages during startup 3ccdbc570 #12536 lua: add vim.register_keystroke_callback 971a191c4 lua: Add ability to pass lua functions directly to vimL 91e41c857 #12401 lua: add vim.highlight.range f2894bffb #12279 lua: Add highlight.on_yank ae5bd0454 #11969 lua: add tbl_deep_extend ea4127e9a lua: metatable for empty dict value dab40f43b Add v:lua.func() vimL syntax for calling lua 678a51b1d Lua: vim.validate() 474d0bcbf lua: vim.rpcrequest, vim.rpcnotify, vim.NIL 8ee7c94a9 lua: add vim.fn.{func} for direct access to vimL function d0d38fc36 #11442 Lua: vim.env, vim.{g,v,w,bo,wo} Tree-sitter: Note: tree-sitter is considered experimental for 0.5. There's remaining bugs for buffer parsing, as well as known performance issues for large files and injected (nested) languages. e93342629 #10124 Tree-sitter API for lua 440695c29 tree-sitter: implement query functionality and highlighting prototype 8bea39f37 feat(treesitter): allow injections to be configured through directives 929f19414 feat(treesitter): add offset predicate for language injection cd75d3289 #14200 feat: treesitter checkhealth 1a631026a feat(treesitter): add language tree d3f544002 treesitter: runtime queries 3c5141d2c #13008 treesitter: add string parser 9437327d5 treesitter: use new on_bytes interface e4b5efa51 treesitter: use decoration provider API d6209a7b8 fix: Add a test and it is so pretty 836c31032 feat(ts): bump tree-sitter to v0.20.0 LSP client: 00dc12c5d #11336 lua LSP client: initial implementation d5aaad14e #11430 Followup improvements to LSP ee7ac469c #11578 LSP: Use async completion for omnifunc. 070bd3ea2 #11604 LSP: shrink API, improve docs 25afa10f9 #11669 Merge 'LSP: differentiate diagnostic underline by severity' e956ea767 #11777 LSP: show diagnostic in qf/loclist dd8b29cfe #11838 LSP: set InitializeParams.rootPath value 0c5d2ffeb #11837 Merge 'LSP: fixes, improve test visibility' ca8699378 #11638 LSP: implement documentHighlight 220a2b05c LSP/references: Add context to locations returned by server ccb038dc6 LSP/completion: add textEdit support da6f38ab3 #12313 LSP: Add workspace.applyEdit client capabilities f559e5249 #11607 LSP: Add textDocument/codeAction support 0d83a1c43 #12638 LSP: Feature/add workspace folders fd507e278 #13641 LSP: window/showMessageRequest e467d2939 LSP: Move workspace/configuration handler from nvim-lspconfig to core 2bdd553c9 feat(lsp): Add codelens support UI: f8134f2fd screen.c: remove fold_line special case c146eddc8 experimental support for per-window color schemes a1508c9f6 nvim__screenshot (dump TUI state to file) 08fe10010 terminal: enable pass through indexed colors to TUI in rgb mode 5a8569942 tests/ui: make screen.lua use "linegrid" representation internally 8fe19d9d8 screen: make ui_compositor aware of the intended size of a float 54ce1010e extmark: add new flexible "decorations" abstraction 4781333a7 decorations: allow virt_text overlay at any column bdebe8516 decorations: use extmark column adjustments for buffer highlights 7b488314d decorations: Allow highlights beyond end of line hl_eol 425bc438a decorations: add additional styling of virt_text overlays edb5864a2 floats: z-index 243820ebd floats: add borders (MS-DOS MODE) 5b6edc852 feat(float): add rounded borders preset 4a36ec6da #14310 float: add "solid" border style vim patches: around ~1000 vim patches and runtime updates got merged. Hooray! Changes include improvements to quickfix, prompt buffers, incsearch, display of search counts, and much much more. various features and changes: 858c05613 #12809 Support for :perl, :perlfile, :perldo and perleval() bc86f76c0 api/buffer: add "on_bytes" callback to nvim_buf_attach 19b623708 jobstart now supports env/clear_env ef7c6b972 Support specifying "env" option for termopen() 7c4f34966 #13287 switch from travis to github actions 24db59ca8 feat: implement BufModified autocmd b83d8223f implement Scroll autocommand 8caf84130 Lower "closed by the client" message level to INFO 7de276b87 bump libvterm to 0.1.4 097ec71bd #14096 aarch64/linux: fix build by updating LuaJIT bd5f0e969 #12531 support autoread using tui focus tracking 8a1276005 #12382 Add v:event.visual during `TextYankPost` 802f8429d api(nvim_open_win): add "noautocmd" option FIXES: 21444552c BugFix(clipboard): Fix block paste not working properly 01493e799 #14413 api: fix nvim_exec() silencing behaviour 9699f3be1 fix(doc): Add '/site' to stdpath('data') example in `:help 'rtp'` 581b2bcde screen: fix problem with p_ch eae4b1e5c luaref: fix leaks for global luarefs 409b2711f fix: segfault when pasting in term with empty buffer cf6c23fb0 #14273 fix plenty of errors discovered by clang 21035cff9 #14500 fix plenty of errors discovered by coverity bca19138b #13987 tui: fix possibility of evaluating uninitialized variables 9f2335937 fix_cursor: do not change line number when edit will not impact cursor row 33f92fe02 fix(pty): Always use $TERM from the job's env dict 6249059d4 checkhealth: fix terminfo problems on Windows 397be5d38 #12811 UI: fix cursor not displayed after hiding and un-hiding 87afc9031 screen.c: fix an issue with wrap and folds b419e39a2 screen.c: fix last character on foldtext 2ea312769 #13688 screen.c: fix display of signcolumn=auto in diffs c2d288e29 Fix screen terminal family issues 314b222c2 #14127 Fix click on foldcolumn with vsplit e65d0e53b vim.fn: throw error when trying to use API function
* fix(lsp): do not convert vim.NIL to nil in listsAkin Sowemimo2021-06-24
|
* fixup! tests: fix system_spec when run with clipboard manager (#10956)Jan Edmund Lazo2021-06-05
| | | | | | uv_process_options_t "args" member was set to a local array from stack. when uv_process_options_t variable is outside the function. https://pvs-studio.com/en/docs/warnings/v507/
* api: allow open non-current buffer as terminal (+ xmas bonus)Björn Linse2021-03-12
| | | | vim.api.nvim_chan_send(vim.api.nvim_open_term(0), io.open("/path/to/smile.cat", "r"):read("*a"))
* lsp: Resolve codeLense server capabilities (#14056)Josa Gesell2021-03-10
|
* lsp: add incremental text synchronizationMichael Lingelbach2021-03-09
| | | | | * Implementation derived from and validated by vim-lsc authored by Nate Bosch
* lsp: remove deprecated references to 'callbacks' (#13945)Matthieu Coudron2021-02-23
| | | | | vim.lsp.callbacks was deprecated a few months ago. This is a cleanup before the release. Use vim.lsp.handlers instead.
* LSP: add test for workspace/configuration handlerMichael Lingelbach2021-01-01
|
* eval: executable(), exepath() accept strings onlyJan Edmund Lazo2020-12-11
| | | | | | | | Cherry-pick f_executable(), f_exepath(), check_for_string() from patch 8.2.2117. Rename check_for_string() to tv_check_for_string(). https://github.com/vim/vim/commit/7bb4e74c38642682cfdd0cb4052adfa5efdd7dd1 Close https://github.com/neovim/neovim/issues/13485
* runtime: propagate lua parsing errors while using "require"dm1try2020-12-10
|
* startup: load files from &packpath . '/start/{pluginname}'Björn Linse2020-11-19
| | | | | | | | | | | Quoting the existing docs: Packages are loaded. These are plugins, as above [&runtimepath], but found in the "start" directory of each entry in 'packpath'. Every plugin directory found is added in 'runtimepath' and then the plugins are sourced. Also tj didn't think I could do it.
* Add PVS comment to new source filesJames McCoy2020-11-10
|
* startup: handle autoload and lua packages during startupBjörn Linse2020-11-02
| | | | ¡NO HAY BANDA!
* lsp: only send buf requests to servers that support the request (#12764)francisco souza2020-10-25
| | | | | | | | | | | | | Refactors how required capabilities are detected and validated, and make sure requests are only sent to clients that support it (and only fail if no clients support the provided method). The validation happens at the buf_request level, because we assume that if someone is sending the request directly through the client, they know what they're doing. Also, let unknown methods go through. This is extracted from #12518 and closes #12755. Co-authored-by: francisco souza <fsouza@users.noreply.github.com>
* test/LSP: assert contents of log fileJustin M. Keyes2020-02-16
|
* lsp/rpc.lua: fix `env` application functionJustin M. Keyes2020-02-16
| | | | Env vars must be merged with the current env.
* LSP: fix validate_client_configJustin M. Keyes2020-02-16
| | | | | - `cmd_env` is a table not a function. - tests: Set $NVIM_LOG_FILE for fake LSP server.
* test/LSP: use less-generic exit codeJustin M. Keyes2020-02-16
| | | | | | | | | | | | | | | | | | | | | - os.exit(1) is too generic, since code 1 may be caused by Nvim exiting for some other reason. Change it to os.exit(101). - style: de-architect json_encode/json_decode calls. Failure seen in travis macOS job: https://travis-ci.org/neovim/neovim/jobs/647849133 [ FAILED ] test/functional/plugin/lsp_spec.lua@ 266 SP basic_init test should not send didOpen if the buffer closes before init test/functional/plugin/lsp_spec.lua:297: exit code Expected objects to be the same. Passed in: (number) 1 Expected: (number) 0 stack traceback: test/functional/plugin/lsp_spec.lua:297: in function 'on_exit' test/functional/plugin/lsp_spec.lua:100: in function 'test_rpc_server' test/functional/plugin/lsp_spec.lua:272: in function <test/functional/plugin/lsp_spec.lua:266>
* lsp: transmit "\n" after last line when 'eol' is setBjörn Linse2019-11-21
| | | | | Otherwise some servers like clangd will emit spurious "no newline at end of file" warnings.
* lua LSP client: initial implementation (#11336)Ashkan Kiani2019-11-13
| | | | | | Mainly configuration and RPC infrastructure can be considered "done". Specific requests and their callbacks will be improved later (and also served by plugins). There are also some TODO:s for the client itself, like incremental updates. Co-authored by at-tjdevries and at-h-michael, with many review/suggestion contributions.
* tests: let_spec: enable "multibyte env var to child process" (#11233)Daniel Hahler2019-10-18
|
* build: do not build test fixtures by default (#11230)Daniel Hahler2019-10-18
| | | | | - tty-test is also used on Windows - FUNCTIONALTEST_PREREQS: add printenv-test
* fix api_level_6.mpackJustin M. Keyes2019-09-15
| | | | | This was generated incorrectly in the 0.4.1 release, fixed in the 0.4.1 release.
* NVIM v0.4.0v0.4.0Justin M. Keyes2019-09-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This release represents ~2700 commits since v0.3.4, the previous non-maintenance release. Besides the highlights listed below, this release features vast improvements to documentation, internal subsystems and test/CI infrastructure, and 700+ patches merged from Vim. FEATURES: New API functions: nvim_create_buf: create various kinds of buffers nvim_get_context, nvim_load_context 8e6b0a73c91b #10619 API: Context: save/restore/inspect editor state nvim_input_mouse: perform mouse actions nvim_open_win: create floating windows (and external, for supporting UIs) nvim_paste: paste text at cursor nvim_put: put text at cursor nvim_select_popupmenu_item: perform popupmenu actions nvim_set_keymap: create/delete mappings nvim_set_vvar: set v: variables nvim_ui_pum_set_height nvim_ui_try_resize_grid nvim_win_close: close windows nvim_win_get_config: get window configuration nvim_win_set_config: reconfigure windows New UI events: redraw.grid_destroy redraw.hl_group_set 8a3f8589a3ed #10504 UI/highlight: expose builtin highlight groups using hl_group_set event redraw.msg_clear redraw.msg_history_show redraw.msg_ruler redraw.msg_set_pos redraw.msg_show redraw.msg_showcmd redraw.msg_showmode redraw.win_close redraw.win_external_pos redraw.win_float_pos redraw.win_hide redraw.win_pos API f5c56f03bb9e #9170 API/Lua: nvim_buf_attach: support Lua callback 82d48c0dab0f #9896 API: emit nvim_error_event on failed async request b9ad12e6c2fa #9992 UI/nvim_ui_attach(): add `override` option 3d1ed7c95901 #9993 UI/ext_messages: learn more message kinds 8ed54bbec3b0 #9547 proper multiline error message for rpcrequest, API wrappers Lua This release introduces "Nvim-Lua standard library". See ":help lua-stdlib". 89d7e24891c2 #9463 Lua stdlib: vim.inspect, string functions 8e941c59ec23 #9740 Lua: generate documentation from docstrings 1cbe0145695b #9301 lua/stdlib: Introduce vim.shared c83926cd0aa5 #10123 Lua: introduce vim.loop (expose libuv event-loop) 81e1dbca99c1 #10120 Lua: vim.schedule(cb) 1f54f68732b4 #10688 Lua: minimal UTF-16 support needed for LSP 6fb0020df4eb #10513 Lua encoding support c0993ed3433e Lua: support getting UTF-32 and UTF-16 sizes of replaced text b0e26199ec02 Lua: add {old_byte_size} to on_lines buffer change event UI: - The Nvim 0.3.4 UI protocol introduced line-based updates instead of legacy char-based updates. Nvim 0.4 continues to evolve the UI protocol. See ":help ui". Legacy UI clients are supported. See ":help api-contract". 9a1675b06539 #6619 Floating windows - Can be (re)positioned, anchored, external. - Are real windows showing real buffers. No shortcuts, hacks, or compromises. - Support all features and API of normal windows, plus more. 6427894d8911 #8455 Multigrid: "windows drawn on separate grids" - Windows are logically isolated internally. - Windows are sent to UIs as distinct objects, so that UIs can control layout instead of being stuck with the classic TUI layout. - Per-window font-size, dimenions, line-spacing. - Compositor: Internal subsystem for composing grids. 3855204f5860 #6917 UIEnter, UILeave 788bcbba2465 #9923 ui: ":syn blend=", 'winblend' 7cf7c0a0b8e9 #9575 ui: 'redrawdebug' option for flexible debugging of redrawing 5c836d2ef8b6 #9607 wildoptions=pum (enabled by default) 37f8df882463 #9571 UI: 'pumblend' option for semi-transparent popupmenu c403a95a5297 #9446 Visual: highlight char-at-cursor - Traditionally Vim's visual selection does "reverse mode", which perhaps conflicts with the non-blinking block cursor. But 'guicursor' defaults to a vertical bar for selection=exclusive, and this confuses users who expect to see the text highlighted. :terminal fc27dc98d74f #8550 autocmds: TermEnter, TermLeave d13803f64fc5 #9810 keymap, terminal: more keycodes 3b56f59532ac #9535 :terminal : Fix F1-F4 key codes 2d4a37ebab35 #10370 :ls : show "R", "F" for terminal-jobs fd0fd752c872 #9966 terminal: swap priority of terminal, editor highlights 7bb858c39cac #9494 libvterm 0.1 TUI 3afb397407af syntax, TUI: support "strikethrough" ccbcd390d42d #9408 TUI: "title stacking" unconditionally 298608f88c46 #9509 TUI: detect background color, set bg=dark/light 42f492ac9905 #9097 TUI: handle Smulx extension capability (extended underline) 424ddd01f588 #10205 TUI: support rgba background detection 9b4383261a3d #9601 TUI: italics in tmux, Terminal.app f6fb370b1bcc #9793 keymap: support more (keypad) keycodes 3340e08becbf #9423 TUI: Konsole DECSCUSR fixup :checkhealth d0fd66ba82c4 health/provider.vim: check curl HTTPS support c38862aceabe #10490 checkhealth: try yarn if npm is missing 43356a43d00f #9929 health: check if tmux enabled true colors ec5a4d862d71 #9548 checkhealth: validate locale providers (clipboard, python, etc.): 96be8a2c4d63 #10161 Allow reloading providers (useful for UIs/clients) db3c797c6b3c #9487 provider: improve error message if provider is missing Various: 36762a00a801 #9295 signs: support multiple columns 801fe799ff35 #10382 eval: wait() (wait for any condition) 9df3a676e7f2 #10400 MsgArea highlight; message grid a9bea8c1047f #10790 keymap: allow modifiers to multibyte chars, like <m-ä> 25e0a449bb66 #10878 #4448 paste: redesign (10x+ faster pasting; extensible vim.paste Lua hook) ef5037e7f6e1 #9706 autocmd: introduce "++once" feature 175398f21645 #9616 add CompleteChanged autocmd 7fcf2f926fc6 #9717 TextYankPost: add v:event["inclusive"] 3a699a790c14 #8364 termdebug.vim plugin ca1ce590257c #9709 performance: use os_copy to create backups ed0e96cd28f8 man.vim: set 'linebreak' 70f6939fd4b5 #9564 events: add "Signal" event f89d0d8230f3 #9568 inccommand: auto-disable if folding is slow FIXES: 41bb68b8e8d0 #10584 process_stop: uv: do not close stdin first/explicitly e50aa2a6c654 #10117 normal: Don't exit CTRL-O mode after processing K_EVENT 95fa71c6d2b4 #9504 :recover : Fix crash on non-existent *.swp 5a836d4767b7 #9507 screen: don't unconditionally clear messages on window scroll 149dcbf2c762 #10021 channel: refactor events, prevent recursive invocation of events d19ff73b39a9 #10107 Fix multiple c_CTRL-D showing statusline b65a7b7f6692 #10103 Fix wildmode=list,full and display+=msgsep interaction 0be6d3c86fe5 #9634 fsync: Ignore ENOTSUP. Fix writing to SMB. b247c6fd2255 #10025 kbtree: pointer UB and unitialized value fixes 018e0d5a19c3 #9643 API/buffer-updates: always detach on buf-reload 400ee59247ea #9961 API: fix cursor position when lines are added 769f44e918c6 #9911 win/defaults: Use "…/nvim-data/site" in 'runtimepath' 83d571653bdc #9911 spellfile.vim: store files in stdpath('data') 8dbf23181add #9887 RPC: conform message-id type to msgpack-RPC spec 5f996e36d102 #9894 options: properly reset directories on 'autochdir' 4c4a57015687 #9807 various CursorMoved fixes 943bedfc86ab #9853 event-loop: do not set CA_COMMAND_BUSY 9d207fd87617 #9693 dictwatcheradd(): support b:changedtick 2d50bf349883 #9789 mac: fix locale detection c5631338b16b #9754 :mksession : restore tab-local working directories 092e7e6c6058 #9703 #9703 executable(): return false if user is not owner 11a481f711ee #9686 env var fixes/improvements 8e54847fdf3c #9666 #7920 os/env: Fix completion of multibyte env var names 519382646be3 #10468 Fix is_executable_in_path() on Windows 8eaa452073a1 #9516 win: exepath(), executable() fixes f55c1e4233a4 #10544 reltimefloat(): allow negative result b08dc3ec195f #10561 win: jobstart(), system(): $PATHEXT-resolve exe 7cc2b723d43c #10392 TextYankPost: spurious/too-early dispatch during delete 6e01ed6a4c85 OpenBSD: stop jobs/processes properly 58dd5fcc01ed #10522 jobstop(): close channel before process_stop() 83632022f84e #10959 improved resize behavior (all UIs) c6eb1f42bec0 #10830 API: fix nvim_command_output buffer overflow cbfd18c85acd #10763 startup: handle 'guicursor' after user config b8f2436febcc #10915 jobwait(): fix race if job exits quickly 2fafed6bb8aa #10765 clipboard: handle/avoid SIGTERM with previous owner 8aca932aa0ac #9954 clipboard: setreg("*") with clipboard=unnamed 3f10c5b5338f #9480 performance: clipboard/macOS: assume that pbcopy works 48efafc81c84 #10398 screen: disable redrawing inside VimResized 5e4b93a38f1e #10389 API/Lua: make nvim_execute_lua use native lua floats, not special tables 8c6f5b7f9268 #9934 Spurious quote mark in command line when typing <C-R> a8a38f346548 Lua 5.2/5.3 compat :terminal 47b7b471fa0f #10700 :terminal : update buffer when switching tabpage 5225c1ec302f #9605 terminal: Fix potential invalid local 'scrollback' 894f6bee54e8 #8325 :terminal : set topline based on window height 8171e96b9640 #9551 Improve :terminal resize d928b036dc2b #9856 :stopinsert should leave terminal-mode 3f712185058f #9926 :terminal : fix: Using `:stopinsert` while in normal mode 5020daa6e5ce #9883 ui/terminal: make terminal state redraw like any other state TUI: 9f19e8d29dce #9443 TUI: Do not disable BCE for builtin terminfos a4076e5dcf66 #9474 win/TUI: fix text overrides line numbers 533d4a36ec03 #9645 TUI: do not resize host-terminal on startup b51e5d8b8dd2 #9688 tui_tk_ti_getstr: handle weird value 1f5eac1115a4 #10785 TUI: fix data-race during resize CHANGES: 9697c7f56a26 #8194 fix menu_get() 7f2e43c637e5 #9520 improve Lua error messages c2343180d74f #9526 Remove jemalloc baf93d96063c #9581 UI: always use concrete colors for default_colors_set 91688b488310 #9563 defaults: set 'scrollback' to -1 by default bb24fec33355 #10136 defaults: exclude "S" from 'shortmess' ddd0eb6f5120 #8540 startup: -es/-Es (silent/batch mode): skip swapfile 35362495c965 #9805 jumplist: avoid extra tail entry 939d9053bdf2 #10573 channels: reflect exit due to signals in exit status code 45c34bd84aa5 #10689 :doautocmd : Never show "No matching autocommands" fb19aeeb33f7 #9110 API: make nvim_win_set_option() set window-global, not buffer-local abfc8b3257f8 #10778 emsg_multiline: log Vim errors 06d9cc734bf0 #10657 exists("$FOO"): return false for empty env var 6616d1d3e5c9 #10743 win/env: Vim-compat: Empty string deletes env var 7d664837e1a9 #10662 win: expand nested env var in $HOME 2816bc8620ca #8349 edit.c: Disable indent during completion 58f505dc7432 #9829 startup: remove TUI init special-case Historically Vim/Nvim does backflips to handle input and show messages before a UI is available. This logical contradiction was already fixed for remote UIs (#9024 c236e80cf3df). Fixing it also for the TUI avoids problems on Windows, simplifies the logic, and avoids races like #9959.
* tests: fix system_spec when run with clipboard manager (#10956)Daniel Hahler2019-09-12
| | | | | | | | | * tests: move os_kill to functional helpers * tests: fix system_spec when run with clipboard manager Replaces "xclip" with a dedicated helper program. Fixes: https://github.com/neovim/neovim/issues/4900#issuecomment-501866842
* test: shell-test.c: flush all streamsJustin M. Keyes2019-09-01
|
* shell-test: remove REP_NODELAY, less delay with REPDaniel Hahler2019-08-30
| | | | | | | | | REP_NODELAY was added because REP delayed too much. This changes REP to only add a delay on every 100th line instead. This helps to cover the additional pulse steps with out_data_decide_throttle, which would have required to change REP_NODELAY anyway.
* win: stream: reset tty stream on closeAnciety2019-08-20
| | | | | | | | | | This was overlooked in 8072f085d2ed. Analogous to 8a782f1699e2. fix #10668 ref 8072f085d2ed #9884 ref 8a782f1699e2 #2377
* tests: output_spec: use shell-test REP_NODELAY (#10726)Daniel Hahler2019-08-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix flaky "shell command :! throttles shell-command output greater than ~10KB:": [ RUN ] shell command :! throttles shell-command output greater than ~10KB: warning: Screen changes were received after the expected state. This indicates indeterminism in the test. Try adding screen:expect(...) (or wait()) between asynchronous (feed(), nvim_input()) and synchronous API calls. - Use screen:redraw_debug() to investigate; it may find relevant intermediate states that should be added to the test to make it more robust. - If the purpose of the test is to assert state after some user input sent with feed(), adding screen:expect() before the feed() will help to ensure the input is sent when Nvim is in a predictable state. This is preferable to wait(), for being closer to real user interaction. - wait() can trigger redraws and consequently generate more indeterminism. Try removing wait(). ERR test/functional/ui/screen.lua:579: Failed to match any screen lines. Expected (anywhere): " %." Actual: |XXXXXXXXXX 591 | |XXXXXXXXXX 592 | |XXXXXXXXXX 593 | |XXXXXXXXXX 594 | | | | | |{3:-- TERMINAL --} | stack traceback: test/functional/ui/screen.lua:579: in function '_wait' test/functional/ui/screen.lua:367: in function 'expect' test/functional/ui/output_spec.lua:63: in function <test/functional/ui/output_spec.lua:53> Log: https://travis-ci.org/neovim/neovim/jobs/569082705#L5355 (gcc-functionaltest-lua)
* provider: skip non-provider has() feature-namesJustin M. Keyes2019-08-04
| | | | | We don't want to retry autoload sourcing (slow) for every random has() query that finds it way to eval_call_provider().
* provider: g:loaded_xx_provider=2 means "enabled and working"Justin M. Keyes2019-08-04
| | | | | Value of 1 cannot be used, because users might set that in their vimrc to _disable_ a provider, which would confuse :checkhealth and has().
* provider: decide status by g:loaded_xx_providerJustin M. Keyes2019-08-04
|
* provider: let providers decide their statusRui Abreu Ferreira2019-08-04
| | | | | | | | | | | | | | | | | | | | | | | | | | Instead of deciding provider status in eval_has_provider, move the decision to the provider Vim scripts. Previously, provider loading worked as follows: 1. eval_has_provider() verified provider availability by searching for the provider#providername#Call function and cached this verificaion as a static variable for some providers 2. providers short-circuited on loading to prevent the definition of the Call function (with the exception of the node provider that did not) This commit changes the expected interface between nvim and its providers to facilitate provider reloading, by splitting the verification of the provider from the availability of the Call function. eval_has_provider() now checks for a provider#providername#enabled variable. It is up to the provider script to set this to 0 or 1 accordingly. eval_call_provider() remains unchanged. All providers hosting a Call function were updated to respect this. The clipboard provider now has a Reload function to reload the provider.
* shell-test: fix REP for count larger than uint8_t (#10581)Daniel Hahler2019-07-22
|
* win: jobstart(), system(): $PATHEXT-resolve exeJustin M. Keyes2019-07-21
| | | | | | | | | | | | Windows: In order for jobstart(['foo']), system(['foo']) to find "foo.cmd", we must replace "foo" with "foo.cmd" before sending `argv` to process_spawn(). Rationale: jobstart([…]), system([…]) "executable" semantics should be consistent with the VimL executable() function. fix #9569 related: #10554
* test: shell-test.c: "REP" command: flush, wait 1ms #10552Justin M. Keyes2019-07-20
| | | | | | Typically most shell output is the result of non-trivial work, so it would not blast stdout instantaneously. To more closely simulate that typical scenario, change `shell-test REP` to wait 1 millisecond between iterations.
* test: shell-test.c: flush stdout for REP #10548Justin M. Keyes2019-07-20
| | | fix #10534
* tests: shell-test: use count for REP (#10514)Daniel Hahler2019-07-16
| | | | | | | Also fix V576: use width specification > Incorrect format. Consider checking the third actual argument of the > 'sscanf' function. It's dangerous to use string specifier without width > specification. Buffer overflow is possible.
* tests: shell-test: add INTERACT mode (#10405)Daniel Hahler2019-07-03
| | | | Use it to improve ls_spec: it should not use the user's real shell for performance and other reasons.
* cmdline: correct the column position of wildoptions=pum popupmenuBjörn Linse2019-07-01
| | | | | - position might get invalid with "longest" match - position might be wrong when completed pattern ends in "/"
* test/env: multibyte env var to child processerw72019-02-28
| | | | | | | | Note: the test fails on non-Windows CI (Travis linux, Quickbuild bsd): even on master before the env.c changes in this patch-series. Maybe the unix part of printenv-test.c needs to be revisited. Signed-off-by: Justin M. Keyes <justinkz@gmail.com>
* build: -Wmissing-prototypesJustin M. Keyes2019-02-04
| | | | | | | ref #343 Though I don't see a strong benefit, it isn't too much of a burden, and maybe avoids confusion in some cases.
* NVIM v0.3.2v0.3.2Justin M. Keyes2018-12-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Besides the "visible" improvements, this release features numerous internal improvements to the UI/screen code and test infrastructure. Numerous patches were merged from Vim, which are not mentioned below. FEATURES: 07ad5d71ab97 clipboard: Support custom VimL functions #9304 725da1feeb9a #9401 win/TUI: Improve terminal/console support 7a8dadbedb0b #9077 startup: Use $XDG_CONFIG_DIRS/nvim/sysinit.vim if it exists feec926633e3 #9299 support <cmd> mapping in more places 0653ed63a508 #9028 diff/highlight: Show underline for low-priority CursorLine bddcbbb5716a signs: Add "numhl" argument #9113 05f9c7c2f7f5 clipboard: support Wayland (#9230) 14ae394532aa #9052 TUI: add support for undercurl and underline color 4fa3492a6fcb #9023 man.vim: soft (dynamic) wrap #9023 API: 8b39e4ec7933 #6920 API: implement object namespaces b1aaa0a881ef API: Implement nvim_win_set_buf() #9100 8de87c7b1ca0 #8180 API: virtual text annotations (nvim_buf_set_virtual_text) 2b9fc9a13f14 #8660 API: add nvim_buf_is_loaded() API: buf_get_lines, buf_line_count handle unloaded buffers 88f77c28e52a API: nvim_buf_get_offset_for_line 94841e5eaebc API/UI: #8221 ext_newgrid, ext_hlstate (use line-based rather than char-based updates) UI b5cfac089409 #8806 TUI: use BCE again more often, (smoother resizes/scrolling) 77b5e9ae25fc #9315 screen: add missing status redraw when redraw_later(CLEAR) was used 5f15788dc3ac TUI: clip invalid regions on resize (#8779), fixes #8774 c936ae0f3688 #9193 TUI: improvements for scrolling and clearing f20427451e7f #9143 UI: disable clearing almost everywhere f4b2b6666189 #9079 TUI: always use safe cursor movement after resize d36afafc8dc7 #9211 ui_options: also send when starting or from OptionSet 67f80d485cec TUI: Avoid reset_cursor_color in old VTE #9191 e55ebae37340 #9021 don't erase screen on `:hi Normal` during startup c5790d91897c #8915 TUI: Hint wrapped lines to terminals. FIXES: 231de7253982 RPC: turn errors from async calls into notifications 907ad921bc2f TUI: Restore terminal title via "title stacking" (#9407) cb76a8a95f3a genappimage: Unset $ARGV0 at invocation #9376 b48efd9ba7bf #9347 TUI: FreeBSD: Improve support for BSD vt console c16529afa5c8 TUI: Konsole 18.07.70 supports DECSCUSR (#9364) aec096fc5b8a os/lang: use the correct LC_NUMERIC also for OS X 5fee0be91552 provider: improve error message (#9344) 3c42d7a10a04 TUI: alacritty supports set_cursor_color #9353 7bff9a5de842 TUI: Alacritty supports DECSCUSR (#9048) 57acfceabeb3 macOS: infer primary language if $LANG is empty #9345 bc132ae123d4 runtime/syntax: Fix highlighting of augroup contents (#9328) 715fdfee1ed5 #9297 VimL/confirm(): Show dialog even if :silent 799d9c32157c clipboard: Prefer xclip (#9302) 6dae7776ed0d provider/nodejs: fix npm,yarn detection 16bc1e9c1782 #9218 channel: avoid buffering output when only terminal and no callbacks are active 72fecad1ffe3 #8804 Fix crash in lang_init() on macOS if lang_region = NULL d58139877990 ruby: detect rbenv shims for other versions (#8733) e568ac7a68d3 #9123 third-party/unibilium: Fix parsing of extended capability entries c4c74c3883aa jobstart(): Fix hang on non-executable cwd #9204 1cf50cbfd9b7 provider/nodejs: Simultaneously query npm and yarn #9054 6c496db4b75e undo: Fix infinite loop if undo_read_byte returns EOF #2880 f8f83579ff42 #9034 'swapfile: always show dialog' CHANGES: c236e80cf3df #9024 --embed: wait for UI unless --headless 180b50dddc26 #9248 python: 'neovim' module was renamed to 'pynvim' 2000b6a64a9c #8589 VimL: Remove legacy aliases "v:errmsg", "v:shell_error", "v:this_session" deb18a050ef5 defaults: background=dark #2894 (#9205) c1187d4af013 defaults: win: 'shellpipe' for cmd.exe (#8827)
* coverity/108274: tty-test.c: Insecure data handling (#8666)Justin M. Keyes2018-07-01
|
* NVIM v0.3.0v0.3.0Justin M. Keyes2018-06-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FEATURES: 3cc7ebf8107b #7234 built-in VimL expression parser 6a7c90464882 #4419 implement <Cmd> key to invoke command in any mode b8363283faac #7679 'startup: treat stdin as text instead of commands' 58b210e1146f :digraphs : highlight with hl-SpecialKey #2690 7a13611ba203 #8276 'startup: Let `-s -` read from stdin' 1e71978cf032 events: VimSuspend, VimResume #8280 1e7d5e8cdf98 #6272 'stdpath()' f96d99ad1118 #8247 server: introduce --listen e8c39f72fdf1 #8226 insert-mode: interpret unmapped META as ESC 98e71123900f msg: do not scroll entire screen (#8088) f72630b78429 #8055 let negative 'writedelay' show all redraws 5d2dd2ebe28c win: has("wsl") on Windows Subsystem for Linux #7330 a4f6cec7a31f cmdline: CmdlineEnter and CmdlineLeave autocommands (#7422) 207b7ca4bc16 #6844 channels: support buffered output and bytes sockets/stdio API: f85cbea725b4 #7917 API: buffer updates 418abfc9d069 #6743 API: list information about all channels/jobs. 36b2e3f743aa #8375 API: nvim_get_commands 273d2cd5d5cf #8329 API: Make nvim_set_option() update `:verbose set …` 8d40b3617c8b #8371 API: more reliable/descriptive VimL errors ebb1acb3c083 #8353 API: nvim_call_dict_function 9f994bb69925 #8004 API: nvim_list_uis 34057045beca #7520 API/UI: forward option updates to UIs 911b1e49abb8 #7821 API: improve nvim_command_output WINDOWS OS: 9cefd83cc7b9 #8084, #8516 build/win: support MSVC ee4e1fd8ecf1 win: Fix reading content from stdin (#8267) TUI: ffb89049131a #8309 TUI: add support for mouse release events in urxvt 8d5a46e77b1e #8081 TUI: implement "standout" attribute 60716371e97d TUI: support TERM=konsole-256color 67848c0b916c #7653 TUI: report TUI info with -V3 ('verbose' >= 3) 3d0ee17c916e TUI/rxvt: enable focus-reporting d109f5645bac #7640 TUI: 'term' option: reflect effective terminal behavior FIXES: ed6a113804a2 #8273 'job-control: avoid kill-timer race' 4e02f1ab871f #8107 'jobs: separate process-group' 451c48a09265 terminal: flush vterm output buffer on pty output #8486 5d6732ff094a :checkhealth fixes #8335 53f11dcfc713 #8218 'Fix errors reported by PVS' d05712fbe7b5 inccommand: pause :terminal redraws (#8307) 51af911a271e inccommand: do not execute trailing commands #8256 84359a467f21 terminal: resize to the max dimensions (#8249) d49c1dda8bf5 #8228 Make vim_fgets() return the same values as in Vim 60e96a45b4f4 screen: winhl=Normal:Background should not override syntax (#8093) 0c59ac1a2c7e #5908 'shada: Also save numbered marks' ba87a2cde779 cscope: ignore EINTR while reading the prompt (#8079) b1412dc412e1 #7971 ':terminal Enter/Leave should not increment jumplist' 3a5721e91ba8 TUI: libtermkey: force CSI driver for mouse input #7948 6ff13d78b7eb #7720 TUI: faster startup 1c6e95607958 #7862 TUI: fix resize-related segfaults a58c9094db0e #7676 TUI: always hide cursor when flushing, never flush buffers during unibilium output 303e1df13f4f #7624 TUI: disable BCE almost always 249bdb07dd3a #7761 mark: Make sure that jumplist item will not have zero lnum 6f41ce026005 #7704 macOS: Set $LANG based on the system locale a043899ba255 #7633 'Retry fgets on EINTR' CHANGES: ad60927d0925 #8304 default to 'nofsync' f3f197059721 #8035 defaults: 'fillchars' a6052c730741 #7984 defaults: sidescroll=1 b69fa866db5b #7888 defaults: enable cscopeverbose 7c4bb23ff38a defaults: do :filetype stuff unless explicitly "off" 2aa308c6852b #5658 'Apply :lmap in macros' 8ce63930484f terminal: Leave 'relativenumber' alone (#8360) e46534b42302 #4486 refactor: Remove maxmem, maxmemtot options 131aad953c00 win: defaults: 'shellcmdflag', 'shellxquote' #7343 c57d31596370 #8031 jobwait(): return -2 on interrupt also with timeout 6452831cf985 clipboard: macOS: fallback to tmux if pbcopy is broken #7940 300d3651e295 #7919 Make 'langnoremap' apply directly after a map ada1956206be #7880 'lua/executor: Remove lightuserdata' INTERNAL: de0a9548f7bf #7806 internal statistics for list impl dee78a4095a2 #7708 rewrite internal list impl
* build/msvc: Make shell-test fix only apply to MSCVb-r-o-c-k2018-03-06
|
* build/msvc: Make shell-test workb-r-o-c-k2018-03-04
| | | | | MSVC doesn't have unistd.h or usleep() so it was replaced with the Sleep() WinAPI function.