neovim/test/functional
Rafael Kitover 1a1c766049
refactor: Windows tilde expansion followup (#29380)
Followup to #28515:

Rename the static os_homedir() to os_uv_homedir() to emphasize that it
is a wrapper around a libuv function.

Add the function os_get_homedir() to os/env.c to return the cached
homedir value as a const. Must be called after homedir is initialized or
it fails.

The difference between this function and the static os_uv_homedir() is
that the latter gets the homedir from libuv and is used to initialize
homedir in init_homedir(), while os_get_homedir() just returns homedir
as a const if it's initialized and is public.

Use the os_get_homedir() accessor for ~/ expansion on Windows to make
the code more concise.

Add a Windows section to main_spec.lua with tests for expanding ~/ and
~\ prefixes for files passed in on the command-line.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
2024-06-18 11:23:52 +08:00
..
api feat(column)!: rework 'statuscolumn' %r/l items 2024-06-16 19:04:34 +02:00
autocmd feat(complete): specify reason for CompleteDone 2024-05-24 11:57:46 +02:00
core refactor: Windows tilde expansion followup (#29380) 2024-06-18 11:23:52 +08:00
editor fix(lua): find length of completion prefix earlier (#29384) 2024-06-18 09:47:10 +08:00
ex_cmds test: improve test conventions 2024-04-23 18:17:04 +02:00
fixtures fix(lsp): revert buf_versions deprecation/replacement (#29217) 2024-06-07 11:36:46 +02:00
legacy vim-patch:9.1.0414: Unable to leave long line with 'smoothscroll' and 'scrolloff' 2024-05-17 20:28:14 +02:00
lua test: fix vim.deprecate tests 2024-06-12 16:41:26 +01:00
options test: improve test conventions 2024-04-23 18:17:04 +02:00
plugin fix(lsp): tune completion word extraction for decorated labels (#29331) 2024-06-14 19:32:34 +02:00
provider test: improve test conventions 2024-04-23 18:17:04 +02:00
script fix(luacats): allow all types inside tuples 2024-06-01 12:56:43 +01:00
shada refactor(shada): remove ShaDaReadDef secondary wrapper 2024-05-28 13:36:54 +02:00
terminal feat(column)!: rework 'statuscolumn' %r/l items 2024-06-16 19:04:34 +02:00
treesitter fix(treesitter): find buffer in multiple windows #28922 2024-05-27 04:20:03 -07:00
ui vim-patch:9.1.0496: matched text is highlighted case-sensitively 2024-06-18 06:18:58 +08:00
vimscript feat(api): broadcast events to ALL channels #28487 2024-05-17 07:37:39 -07:00
example_spec.lua test: improve test conventions 2024-04-23 18:17:04 +02:00
preload.lua test: improve test conventions 2024-04-23 18:17:04 +02:00
testnvim.lua Merge pull request #29103 from gpanders/test-no-tgc 2024-06-12 19:31:15 -05:00