neovim/test/functional/fixtures
zeertzjq 356a6728ac
vim-patch:9.0.2037: A few remaining cmdline completion issues with C-E/Y (#25686)
Problem:  A few remaining cmdline completion issues with C-E/Y
Solution: Fix cmdline completion fuzzy/Ctrl-E/Ctrl-Y/options when not
          used at the end

Fix cmdline completion fuzzy/Ctrl-E/Ctrl-Y/options when not used at the end

A few places in the cmdline completion code only works properly when the
user hits Tab (or 'wildchar') at the end of the cmdline, even though
it's supposed to work even in the middle of the line.

For fuzzy search, `:e ++ff`, and `:set hl=`, fix completion code to make
sure to use `xp_pattern_len` instead of assuming the entire `xp_pattern`
is the search pattern (since it contains texts after the cursor).

Fix Ctrl-E / Ctrl-Y to not jump to the end when canceling/accepting a
wildmenu completion. Also, make them work even when not using
`set wildoptions+=pum` as there is no drawback to doing so.
(Related issue where this was brought up: vim/vim#13331)

closes: vim/vim#13362

209ec90b9b

Cherry-pick ex_getln.c changes from patch 9.0.2035.

Co-authored-by: Yee Cheng Chin <ychin.git@gmail.com>
2023-10-17 21:42:34 +08:00
..
autoload refactor: deprecate checkhealth functions 2023-04-15 23:40:48 +02:00
bin eval: executable(), exepath() accept strings only 2020-12-11 21:20:20 -05:00
lua refactor: deprecate checkhealth functions 2023-04-15 23:40:48 +02:00
middle fix(runtime): fix ordering of "after" packages 2021-09-30 22:03:18 +02:00
nvim refactor(runtime): handle pack/foo/start/bar/after dirs properly 2021-09-18 13:59:19 +02:00
pack/foo fix(eval): v:lua support for - in module names 2022-01-28 18:20:26 +01:00
start/nvim-leftpad feat(lua): rename vim.loop -> vim.uv (#22846) 2023-06-03 12:06:00 +02:00
wildpum vim-patch:9.0.2037: A few remaining cmdline completion issues with C-E/Y (#25686) 2023-10-17 21:42:34 +08:00
api_level_0.mpack api: api_info()['version'] 2016-10-28 14:33:13 +02:00
api_level_1.mpack api: add api_level_1 fixure 2017-03-15 15:01:06 +01:00
api_level_2.mpack NVIM v0.2.0 2017-05-01 22:13:23 +02:00
api_level_3.mpack NVIM v0.2.1 2017-11-07 23:54:31 +01:00
api_level_4.mpack NVIM v0.3.0 2018-06-11 00:46:49 +02:00
api_level_5.mpack NVIM v0.3.2 2018-12-31 01:06:17 +01:00
api_level_6.mpack fix api_level_6.mpack 2019-09-15 17:28:42 -07:00
api_level_7.mpack NVIM v0.5.0 2021-07-02 17:54:29 +02:00
api_level_8.mpack NVIM 0.6.0 2021-11-30 18:20:42 +01:00
api_level_9.mpack NVIM 0.7 2022-04-15 13:38:44 +02:00
api_level_10.mpack NVIM v0.8.0 2022-09-30 17:15:13 +02:00
api_level_11.mpack NVIM v0.9.0 2023-04-07 13:26:29 +02:00
bigfile_oneline.txt inccommand: improve performance #6949 2017-07-08 17:51:42 +02:00
bigfile.txt 'inccommand': Add tests. 2016-11-15 05:01:25 +01:00
CMakeLists.txt build: use modern cmake (#21589) 2023-01-10 18:49:57 +01:00
cmdscript.cmd win: jobstart(), system(): $PATHEXT-resolve exe 2019-07-21 20:51:37 +02:00
fake-lsp-server.lua fix(lsp): handle absence of a trailing newline #25194 2023-09-21 03:06:40 -07:00
filename_with_unicode_ααα fix: find multibyte file name in line (#20519) 2022-10-07 09:43:16 +08:00
non_executable.txt jobstart(): Return -1 if cmd is not executable. #5671 2016-12-10 16:01:27 +01:00
printargs-test.c *: Add comment to all C files 2017-04-19 19:11:50 +03:00
printenv-test.c vim-patch:8.1.0941: macros for MS-Windows are inconsistent (#20215) 2022-09-18 09:17:15 +08:00
shell_data.txt shell: add test for binary and multibyte output 2018-02-06 10:23:26 +01:00
shell-test.c feat(terminal): TermClose: set exit code in v:event.status #15406 2021-08-20 10:45:28 -07:00
smile2.cat api: allow open non-current buffer as terminal (+ xmas bonus) 2021-03-12 14:44:47 +01:00
startup-fail.lua feat(lua): exit 1 on Lua "-l" script error 2023-01-05 17:10:02 +01:00
startup.lua feat(lua): send "--" literally to Lua "-l" script 2023-01-05 17:10:02 +01:00
streams-test.c fixup! tests: fix system_spec when run with clipboard manager (#10956) 2021-06-05 12:49:26 -04:00
tty-test.c vim-patch:8.1.0941: macros for MS-Windows are inconsistent (#20215) 2022-09-18 09:17:15 +08:00