From: Daniel Carl Date: Sat, 22 Apr 2017 21:04:37 +0000 (+0200) Subject: Added missed --config option on spawning new instance. X-Git-Url: https://git.owens.tech/assets/favicon.png/assets/favicon.png/git?a=commitdiff_plain;h=b837489d8a0895c7d2a8ed5e13bbf0ebf733e3bf;p=vimb.git Added missed --config option on spawning new instance. --- diff --git a/src/main.c b/src/main.c index 32c50d7..8e38de2 100644 --- a/src/main.c +++ b/src/main.c @@ -887,6 +887,7 @@ static void spawn_new_instance(const char *uri, gboolean embed) /* memory allocation */ char **cmd = g_malloc_n( 3 /* basename + uri + ending NULL */ + + (vb.configfile ? 2 : 0) #ifndef FEATURE_NO_XEMBED + (vb.embed && embed ? 2 : 0) #endif @@ -896,6 +897,10 @@ static void spawn_new_instance(const char *uri, gboolean embed) cmd[i++] = vb.argv0; + if (vb.configfile) { + cmd[i++] = "-c"; + cmd[i++] = vb.configfile; + } #ifndef FEATURE_NO_XEMBED if (vb.embed && embed) { char xid[64];