diff options
author | Adam <adamdharrison@gmail.com> | 2022-10-04 21:18:26 -0400 |
---|---|---|
committer | Adam <adamdharrison@gmail.com> | 2022-10-04 21:18:26 -0400 |
commit | 5c3cb31f0fdbf406bc1dbbf830ffb4d9822cf18e (patch) | |
tree | 4964414ebc7e73550fbeae58ee3ab3b416225686 | |
parent | 398e1799e8fbcaae11d2ff9a084a94cbb26a4ff6 (diff) | |
download | lite-xl-plugin-manager-5c3cb31f0fdbf406bc1dbbf830ffb4d9822cf18e.tar.gz lite-xl-plugin-manager-5c3cb31f0fdbf406bc1dbbf830ffb4d9822cf18e.zip |
Port lite-xl changes.
-rw-r--r-- | lpm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -131,7 +131,7 @@ static int lpm_ls(lua_State *L) { #ifdef _WIN32 lua_settop(L, 1); - if (strchr("\\/", path[strlen(path) - 2]) != NULL) + if (path[0] == 0 || strchr("\\/", path[strlen(path) - 1]) != NULL) lua_pushstring(L, "*"); else lua_pushstring(L, "/*"); |