aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/os')
-rw-r--r--src/nvim/os/env.c4
-rw-r--r--src/nvim/os/lang.c2
-rw-r--r--src/nvim/os/os_win_console.c2
3 files changed, 3 insertions, 5 deletions
diff --git a/src/nvim/os/env.c b/src/nvim/os/env.c
index 20dc6a159c..ba874422ff 100644
--- a/src/nvim/os/env.c
+++ b/src/nvim/os/env.c
@@ -927,9 +927,7 @@ char *vim_getenv(const char *name)
// Find runtime path relative to the nvim binary: ../share/nvim/runtime
if (vim_path == NULL) {
vim_get_prefix_from_exepath(exe_name);
- if (append_path(exe_name,
- "share" _PATHSEPSTR "nvim" _PATHSEPSTR "runtime" _PATHSEPSTR,
- MAXPATHL) == OK) {
+ if (append_path(exe_name, "share/nvim/runtime/", MAXPATHL) == OK) {
vim_path = exe_name;
}
}
diff --git a/src/nvim/os/lang.c b/src/nvim/os/lang.c
index d14c086a4f..e6db41a8ac 100644
--- a/src/nvim/os/lang.c
+++ b/src/nvim/os/lang.c
@@ -208,7 +208,7 @@ void ex_language(exarg_T *eap)
#ifdef HAVE_NL_MSG_CAT_CNTR
// Need to do this for GNU gettext, otherwise cached translations
// will be used again.
- extern int _nl_msg_cat_cntr;
+ extern int _nl_msg_cat_cntr; // NOLINT(bugprone-reserved-identifier)
_nl_msg_cat_cntr++;
#endif
diff --git a/src/nvim/os/os_win_console.c b/src/nvim/os/os_win_console.c
index af0c28a308..44a2b6f769 100644
--- a/src/nvim/os/os_win_console.c
+++ b/src/nvim/os/os_win_console.c
@@ -80,7 +80,7 @@ void os_icon_init(void)
const char *vimruntime = os_getenv("VIMRUNTIME");
if (vimruntime != NULL) {
- snprintf(NameBuff, MAXPATHL, "%s" _PATHSEPSTR "neovim.ico", vimruntime);
+ snprintf(NameBuff, MAXPATHL, "%s/neovim.ico", vimruntime);
if (!os_path_exists(NameBuff)) {
WLOG("neovim.ico not found: %s", NameBuff);
} else {