From 718f62b6a3294758731df1bda1775cf0b056fa38 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 7 Aug 2012 14:00:47 +0200 Subject: [PATCH] support line and column in command line parameters --- src/main.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main.cc b/src/main.cc index 844b0539..1adbf3e0 100644 --- a/src/main.cc +++ b/src/main.cc @@ -500,7 +500,12 @@ int main(int argc, char* argv[]) write_debug("utf-8 test: é á ï"); if (argc > 1) - command_manager.execute(String("edit ") + argv[1], context); + { + String cmd = "edit "; + for (int i = 1; i < argc; ++i) + cmd += String(" ") + argv[i]; + command_manager.execute(cmd, context); + } else { auto buffer = new Buffer("*scratch*", Buffer::Type::Scratch);