aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/lua.patch
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2018-12-17 13:39:34 -0500
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2018-12-17 13:39:34 -0500
commit189dfa8250909321a662cffb897d158a09bba090 (patch)
tree0425fc910d9593b58528b86e17f571b14ef41367 /src/lua.patch
parentdc5187f9ec70a1ca92b0e81857bb5e042d1250fb (diff)
Fixed handling of escaped double-quotes in `os.spawn()` on curses.
Diffstat (limited to 'src/lua.patch')
-rw-r--r--src/lua.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua.patch b/src/lua.patch
index 0e9f587b..a9498759 100644
--- a/src/lua.patch
+++ b/src/lua.patch
@@ -479,7 +479,7 @@ diff -r 8a23edc91533 src/luaconf.h
+ param = c;
+ if (*c == '"') {
+ param = ++c;
-+ while (*c && *c != '"') c++;
++ while (*c && (*c != '"' || *(c - 1) == '\\')) c++;
+ } else while (*c && *c != ' ') c++;
+ lua_pushlstring(L, param, c - param);
+ lua_rawseti(L, -2, lua_rawlen(L, -2) + 1);