feat: NVIM_APPNAME supports relative paths #25233

Problem:
NVIM_APPNAME does not allow path separators in the name, so relative
paths can't be used:

    NVIM_APPNAME="neovim-configs/first-config" nvim
    NVIM_APPNAME="neovim-configs/second-config" nvim

Solution:
Let NVIM_APPNAME be a relative path. Absolute paths are not supported.

fix #23056
fix #24966
This commit is contained in:
Rory Nesbitt
2023-09-27 18:09:55 +01:00
committed by GitHub
parent bfdec5b0e7
commit a66b0fdfaa
7 changed files with 60 additions and 21 deletions

View File

@@ -251,7 +251,7 @@ int main(int argc, char **argv)
argv0 = argv[0];
if (!appname_is_valid()) {
os_errmsg("$NVIM_APPNAME is not a valid file name.\n");
os_errmsg("$NVIM_APPNAME must be a name or relative path.\n");
exit(1);
}