aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
* terminal: Fix mouse coordinates issue (#12158)erw72020-04-21
| | | | | | Offsets of window were not taken into account when sending mouse coordinates to the terminal. Therefore, when nu or rnu is set, the mouse coordinates sent to the terminal were not correct. Change it to send the correct coordinates by subtract window offset from col.
* Merge pull request #11989 from Weypare/textEditMatthieu Coudron2020-04-20
|\ | | | | LSP/completion: add textEdit support
| * test: add docs for get_completion_word testAndrey Avramenko2020-04-20
| |
| * test: add get_completion_word test for text_doc...Andrey Avramenko2020-04-20
| | | | | | | | ...ument_completion_list_to_complete_items
* | lua: allow deepcopy of functions (#12136)Tristan Konolige2020-04-19
| |
* | api/ui: win_viewport event for visible range and cursor position in windowBjörn Linse2020-04-01
| |
* | vim.uri: fix uri_to_fname (#12059)Hirokazu Hata2020-03-30
| | | | | | | | | | fix: #12056 If the colon of the drive letter of windows is URI encoded, it doesn't match the expected pattern, so decode it first.
* | Merge pull request #11746 from Billy4195/add_wildmenu_keyMatthieu Coudron2020-03-28
|\ \ | | | | | | [RFC] Wildmenu support C-E and C-Y as popupmenu
| * | ex_getln.c: wildmenu add cancel and apply opsBilly Su2020-01-23
| | |
* | | popupmenu: don't use 'rightleft' option in cmdline modeBjörn Linse2020-03-23
| | | | | | | | | | | | | | | Cmdline is always drawn from the left to right, so using rightleft popupmenu is not useful here
* | | TUI: do not use "nvim_get_option" in tui threaderw72020-03-21
| | | | | | | | | | | | | | | | | | Since "nvim_get_option" is executed on the tui thread as a C function instead of msgpack-rpc, it accesses global variables that may change on the main thread.
* | | vim-patch:8.1.0864 Make 'scrolloff' and 'sidescrolloff' options window local ↵Will Eccles2020-03-17
| |/ |/| | | | | | | | | | | | | | | | | (#11854) Problem: cannot have a local value for 'scrolloff' and 'sidescrolloff' Author: Bram Moolenar https://github.com/vim/vim/commit/375e3390078e740d3c83b0c118c50d9a920036c7
* | Merge pull request #11716 from teto/folds_auto_backupMatthieu Coudron2020-03-02
|\ \ | | | | | | [RFC] foldcolumn autowidth
| * | foldcolumn: allow auto:XMatthieu Coudron2020-02-29
| | | | | | | | | | | | | | | | | | | | | | | | Similar to signcolumn, allow foldcolumn to adapt itself to the number of folds. Regression: vim supports a maximum fdc of 12, this limits it to 9.
* | | lua: add vim.tbl_len() #11889Hirokazu Hata2020-03-01
| | |
* | | vim-patch:8.1.1510: a plugin cannot easily expand a command like done internallyJan Edmund Lazo2020-03-01
| | | | | | | | | | | | | | | | | | Problem: A plugin cannot easily expand a command like done internally. Solution: Add the expandcmd() function. (Yegappan Lakshmanan, closes vim/vim#4514) https://github.com/vim/vim/commit/80dad48c5095d30873a42ec82628bdb213125d8e
* | | Merge #11805 'vim-patch:8.1.0619'Justin M. Keyes2020-02-29
|\ \ \
| * | | vim-patch:8.1.0619: :echomsg and :echoerr do not handle List and DictJan Edmund Lazo2020-02-29
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: :echomsg and :echoerr do not handle List and Dict like :echo does. (Daniel Hahler) Solution: Be more tolerant about the expression result type. https://github.com/vim/vim/commit/461a7fcfce3cd6414f990037e6468af3b5ccf119 Add lua functional tests for :echo,:echon,:echomsg,:echoerr because nvim did not port "test_" functions from Vim that modify internal state. Testing :echoerr via try/catch is sufficient.
* / / lsp: add 'textDocument/documentSymbol’ callbackHirokazu Hata2020-03-01
|/ / | | | | | | Spec: https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_documentSymbol
* | lua: add regex support, and `@match` support in treesitter queriesBjörn Linse2020-02-26
| |
* | test: always use "set more" with :digraph testBjörn Linse2020-02-19
| | | | | | | | otherwise we risk the same issue as with ex_cmds/digraphs_spec.lua
* | lua: move test helper function, map and filter, to vim.shared moduleHirokazu Hata2020-02-18
| |
* | test: always dump logs on failure #11886Justin M. Keyes2020-02-16
| | | | | | | | | | Whenever `eq()`, `ok()`, etc. fails, include log tail in the failure message. This helps to correlate log messages with a particular test failure.
* | 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.
* | test/LSP: dump logs on errorJustin M. Keyes2020-02-16
| | | | | | | | | | | | This will help debug CI flakey failures. TODO: helpers.assert_log() -- Explicitly check contents of the logfile.
* | 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>
* | test: styleJustin M. Keyes2020-02-16
| |
* | Merge pull request #11864 from h-michael/deepcopyBjörn Linse2020-02-15
|\ \ | | | | | | lua: vim.deepcopy() and vim.tbl_extend() should preserve vim.empty_dict()
| * | lua: add vim.tbl_extend and vim.deepcopy testHirokazu Hata2020-02-14
| | |
| * | lua: vim.deepcopy uses empty_dict() instead of {} for empty_dict()Hirokazu Hata2020-02-13
| | | | | | | | | | | | fix: https://github.com/neovim/nvim-lsp/issues/94
* | | mouse.c: can click on multibyte foldopen/foldclose (#11863)Matthieu Coudron2020-02-14
| | | | | | | | | | | | | | | would previously only work with ascii fillchars. Added a test.
* | | test: add json_encode test for vim.empty_dict()Hirokazu Hata2020-02-12
|/ /
* | vim-patch:8.1.0092: prompt buffer test failserw72020-02-12
| | | | | | | | | | | | | | Problem: Prompt buffer test fails. Solution: Set 'nomodified' before closing the window. (Ozaki Kiichi, closes vim/vim#3051 https://github.com/vim/vim/commit/71ef1ba5e996f34d3e0acbe1d89c4c6bfa5e98ba
* | vim-patch:8.1.0036: not restoring Insert mode if leaving prompt buffer with ↵erw72020-02-12
| | | | | | | | | | | | | | | | | | | | mouse Problem: Not restoring Insert mode if leaving a prompt buffer by using a mouse click. Solution: Set b_prompt_insert appropriately. Also correct cursor position when moving cursor to last line. https://github.com/vim/vim/commit/891e1fd894720d0b99a9daefa41e8181844f819a
* | vim-patch:8.1.0032: BS in prompt buffer starts new lineerw72020-02-12
| | | | | | | | | | | | | | Problem: BS in prompt buffer starts new line. Solution: Do not allows BS over the prompt. Make term_sendkeys() handle special keys. Add a test. https://github.com/vim/vim/commit/6b810d92a9cd9378ab46ea0db07079cb789f9faa
* | vim-patch:8.1.0027: difficult to make a plugin that feeds a line to a joberw72020-02-12
| | | | | | | | | | | | Problem: Difficult to make a plugin that feeds a line to a job. Solution: Add the nitial code for the "prompt" buftype. https://github.com/vim/vim/commit/f273245f6433d5d43a5671306b520a3230c35787
* | vim-patch:8.2.0235: draw error when an empty group is removed from 'statusline'Björn Linse2020-02-09
| | | | | | | | | | | | Problem: Draw error when an empty group is removed from 'statusline'. Solution: Do not use highlighting from a removed group. https://github.com/vim/vim/commit/dbe5d361feb65137099644329cf0ecfd4a945a14
* | tests: bail out on libdir just like $VIMRUNTIME, it cannot be calculatedBjörn Linse2020-02-07
| |
* | treesitter: add standard &rtp/parser/ search path for parsersBjörn Linse2020-02-07
| |
* | env: try find library dir (like /usr[/local]/lib/nvim) and add it to &rtpBjörn Linse2020-02-07
| |
* | api: add nvim_get_runtime_file for finding runtime filesBjörn Linse2020-02-07
| |
* | extmarks: fix crash due to invalid column values in inccommand previewBjörn Linse2020-02-02
| | | | | | | | | | This used to use -1 and MAXCOL values. Make sure in range values are used.
* | doc: fix typos [ci skip] #11787Hye Sung Jung2020-01-30
| |
* | Fix shift change callbacks reading bad cursor (#11782)Axel Forsman2020-01-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Sloppy code inherited from Vim caused user scripts to be able to observe the cursor line in an invalid intermediary state, due to Neovim change callbacks being unbuffered unlike Vim listeners. Manifested in Vimscript executed from the callback possibly erroring when `:call`:ing any function, due to the implicit range `curwin->w_cursor.lnum,curwin->w_cursor.lnum` failing validation. Fixed by deferring the call to `changed_lines()` until after `curwin->w_cursor.lnum` gets its correct value.
* | options: winhighlight: fix incorrect string equality testBjörn Linse2020-01-28
| |
* | mksession: always unix slashes "/" for filepathsJustin M. Keyes2020-01-26
| |
* | mksession: simplify generated commandsJustin M. Keyes2020-01-26
| | | | | | | | | | | | | | Doing ":file …" immediately after is enough to fixup the :terminal buffer name. ref #5250
* | mksession: restore same :term buf in split windowsAlexandre Dubray2020-01-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: When session-restore creates a terminal buffer with command like `:edit term://.//16450:/bin/bash`, the buffer gets a different name (depends on PID). Thus the later call to `bufexists('term://.//16450:/bin/bash)` will return false. Solution: Force the buffer name with :file. This as least ensures the same buffer will show in multiple windows correctly, as expected when saving the session. But it still has problems: 1. the PID in the buffer name is bogus 2. redundant :terminal buffers still hang around fix #5250