Browse Source

Fix setting startup view by -w option

Serj Kalichev 10 years ago
parent
commit
09eecde7d8
1 changed files with 3 additions and 2 deletions
  1. 3 2
      clish/shell/shell_startup.c

+ 3 - 2
clish/shell/shell_startup.c

@@ -38,8 +38,9 @@ void clish_shell__set_startup_view(clish_shell_t * this, const char * viewname)
 	assert(this);
 	assert(this->startup);
 	/* Search for the view */
-	view = clish_shell_find_create_view(this, viewname, NULL);
-	clish_command__force_view(this->startup, view);
+	view = clish_shell_find_view(this, viewname);
+	assert(view);
+	clish_command__force_view(this->startup, viewname);
 }
 
 /*----------------------------------------------------------- */