aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2024-02-09 11:42:40 +0100
committerbfredl <bjorn.linse@gmail.com>2024-02-09 15:11:21 +0100
commite0e5b7f0ba1b0440bdc2b557e2b2cfae24706cbd (patch)
treee323ac2fd3a1dc9619265f7daa069ba9a66d8f2b /src/nvim/os
parent4788abf2da6bb5c37e880d74a73a4a7de736b6ac (diff)
downloadrneovim-e0e5b7f0ba1b0440bdc2b557e2b2cfae24706cbd.tar.gz
rneovim-e0e5b7f0ba1b0440bdc2b557e2b2cfae24706cbd.tar.bz2
rneovim-e0e5b7f0ba1b0440bdc2b557e2b2cfae24706cbd.zip
refactor(api): make cstr_as_string accept "const char*"
In the context a String inside an Object/Dictionary etc is consumed, it is considered to be read-only.
Diffstat (limited to 'src/nvim/os')
-rw-r--r--src/nvim/os/fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/os/fs.c b/src/nvim/os/fs.c
index 566d51f30a..ade745df2c 100644
--- a/src/nvim/os/fs.c
+++ b/src/nvim/os/fs.c
@@ -95,7 +95,7 @@ int os_chdir(const char *path)
}
int err = uv_chdir(path);
if (err == 0) {
- ui_call_chdir(cstr_as_string((char *)path));
+ ui_call_chdir(cstr_as_string(path));
}
return err;
}