aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-01-19 23:25:01 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2009-01-19 23:25:01 -0500
commit791fc92dc7bf15efff444004128b90b8b53ca14f (patch)
treef1dcc6dd70f5f69409cb0ba6aef2f4eb78734589 /src
parent73da184d79d6219101f57a01519c04c0057a15c1 (diff)
downloadtextadept-791fc92dc7bf15efff444004128b90b8b53ca14f.tar.gz
textadept-791fc92dc7bf15efff444004128b90b8b53ca14f.zip
Command line parameters can now be used in Windows.
Diffstat (limited to 'src')
-rw-r--r--src/textadept.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textadept.c b/src/textadept.c
index 81408d32..a76717e8 100644
--- a/src/textadept.c
+++ b/src/textadept.c
@@ -115,7 +115,7 @@ int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR lpCmdLine, int) {
char *last_slash = strrchr(path, '\\');
if (last_slash) *last_slash = '\0';
textadept_home = static_cast<char*>(path);
- return main(0, NULL);
+ return main(1, &lpCmdLine);
}
#endif