diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2016-01-30 21:50:01 -0500 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2016-01-30 21:50:01 -0500 |
commit | aad5a9aeab1390d4c8fb07e6d790425f6d84b9c1 (patch) | |
tree | c893b8e18d7d119706f395ad940752f10de6f193 /core/args.lua | |
parent | 231e03da8493b27b337d59a9ed80ff66f798c622 (diff) |
Added single-instance functionality for Win32 and require GLib 2.28+.
Thanks to Carl Sturtivant for the Win32 proof-of-concept code.
Diffstat (limited to 'core/args.lua')
-rw-r--r-- | core/args.lua | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/core/args.lua b/core/args.lua index 9b90d4ab..c27da28e 100644 --- a/core/args.lua +++ b/core/args.lua @@ -88,14 +88,6 @@ if not CURSES then end) end --- For Windows, create arg table from single command line string (arg[0]). -if WIN32 and not CURSES and #arg[0] > 0 then - local P, C = lpeg.P, lpeg.C - local param = P('"') * C((1 - P('"'))^0) * '"' + C((1 - P(' '))^1) - local params = lpeg.match(lpeg.Ct(param * (P(' ')^1 * param)^0), arg[0]) - for i = 1, #params do arg[#arg + 1] = params[i] end -end - -- Set `_G._USERHOME`. _USERHOME = os.getenv(not WIN32 and 'HOME' or 'USERPROFILE')..'/.textadept' for i = 1, #arg do |