jaehyun pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=f5eb5361d2d042881261ab96b794eef7e2990ddb

commit f5eb5361d2d042881261ab96b794eef7e2990ddb
Author: Jaehyun Cho <jae_hyun....@samsung.com>
Date:   Wed Aug 24 09:51:39 2016 +0900

    main: Do not set default new file with template option (-t).
    
    Template option (-t) creates a new file with the selected template.
    Therefore, template option (-t) does not need to set default new file.
---
 src/bin/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/main.c b/src/bin/main.c
index 5a92dc1..ad0a7ed 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -1092,7 +1092,7 @@ init(app_data *ad, int argc, char **argv)
    if (!config_data_set(argc, argv, &default_edc, &template))
      return EINA_FALSE;
 
-   newfile_default_set(default_edc);
+   if (!template) newfile_default_set(default_edc);
    base_gui_init();
    statusbar_set();
    Enventor_Object *enventor = enventor_setup(ad);

-- 


Reply via email to