diff options
author | Leon Bottou <leon@bottou.org> | 2013-08-26 23:49:59 +0400 |
---|---|---|
committer | Leon Bottou <leon@bottou.org> | 2013-08-26 23:50:47 +0400 |
commit | cc5ef04cc68e23b788344911f6dc01b9412b08fc (patch) | |
tree | 1a61aab5be5f8d7f51a7ce35acbcc065cd1e9dba | |
parent | 6da1c72df173e2c45e512ebaabe25edad7f8ec45 (diff) |
fix for path.findprogram
-rw-r--r-- | init.lua.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua.in b/init.lua.in index d72a482..b290d63 100644 --- a/init.lua.in +++ b/init.lua.in @@ -135,7 +135,7 @@ function findprogram(exe) if type(x) == 'string' then return x end k = 'Applications\\' .. exe .. '\\shell\\open\\command' x = getregistryvalue('HKEY_CLASSES_ROOT', k, '') - if type(x) == 'string' and x:match('"') then x = x:match('"[^"]+"') end + if type(x) == 'string' and x:match('^"') then x = x:match('[^"]+') end if type(x) == 'string' then return x end else local path = os.getenv("PATH") or "." |