diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2024-03-03 14:28:11 -0500 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2024-03-03 14:28:11 -0500 |
commit | b800db9e23402c1abcc07fcc969f7388b494fefb (patch) | |
tree | 3df39945c135732716aba90542ce69304d1aa742 | |
parent | f9e3f25961d1d6fb2d118720fac360abe9c5e194 (diff) | |
download | lite-xl-plugin-manager-b800db9e23402c1abcc07fcc969f7388b494fefb.tar.gz lite-xl-plugin-manager-b800db9e23402c1abcc07fcc969f7388b494fefb.zip |
Wrong function.
-rw-r--r-- | src/lpm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |