Browse Source

Init namespace->restore

git-svn-id: https://klish.googlecode.com/svn/trunk@149 0eaa4687-2ee9-07dd-09d9-bcdd2d2dd5fb
Serj Kalichev 13 years ago
parent
commit
1910930064
2 changed files with 2 additions and 0 deletions
  1. 1 0
      clish/nspace.h
  2. 1 0
      clish/nspace/nspace.c

+ 1 - 0
clish/nspace.h

@@ -26,6 +26,7 @@ typedef enum {
 
 typedef enum {
 	CLISH_RESTORE_NONE,
+	CLISH_RESTORE_ALREADY,
 	CLISH_RESTORE_DEPTH,
 	CLISH_RESTORE_VIEW
 } clish_nspace_restore_t;

+ 1 - 0
clish/nspace/nspace.c

@@ -25,6 +25,7 @@ static void clish_nspace_init(clish_nspace_t * this, clish_view_t * view)
 	this->completion = BOOL_TRUE;
 	this->context_help = BOOL_FALSE;
 	this->inherit = BOOL_TRUE;
+	this->restore = CLISH_RESTORE_NONE;
 
 	/* initialise the tree of commands links for this nspace */
 	lub_bintree_init(&this->tree,