aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2024-03-03 14:28:11 -0500
committerAdam Harrison <adamdharrison@gmail.com>2024-03-03 14:28:11 -0500
commitb800db9e23402c1abcc07fcc969f7388b494fefb (patch)
tree3df39945c135732716aba90542ce69304d1aa742
parentf9e3f25961d1d6fb2d118720fac360abe9c5e194 (diff)
downloadlite-xl-plugin-manager-b800db9e23402c1abcc07fcc969f7388b494fefb.tar.gz
lite-xl-plugin-manager-b800db9e23402c1abcc07fcc969f7388b494fefb.zip
Wrong function.
-rw-r--r--src/lpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpm.c b/src/lpm.c
index 386a067..beef23b 100644
--- a/src/lpm.c
+++ b/src/lpm.c
@@ -181,7 +181,7 @@ static int lpm_ls(lua_State *L) {
int i = 1;
#ifdef _WIN32
lua_settop(L, 1);
- lua_pushstring(L, path[0] == 0 || strchr("\\/", &path[strlen(path) - 1]) != NULL ? "*" : "\\*");
+ lua_pushstring(L, path[0] == 0 || strpbrk(&path[strlen(path) - 1], "\\/") != NULL ? "*" : "\\*");
lua_concat(L, 2);
path = lua_tostring(L, -1);