Browse Source

kentry: Create fast links to the nested entries with special purposes

Serj Kalichev 2 years ago
parent
commit
9fd19f9725
1 changed files with 3 additions and 0 deletions
  1. 3 0
      klish/kscheme/kscheme.c

+ 3 - 0
klish/kscheme/kscheme.c

@@ -357,6 +357,9 @@ bool_t kscheme_prepare_entry(kscheme_t *scheme, kentry_t *entry,
 	while ((nested_entry = kentry_entrys_each(&iter))) {
 		if (!kscheme_prepare_entry(scheme, nested_entry, error))
 			retcode = BOOL_FALSE;
+		// Create fast links to nested entries with special purposes
+		kentry_set_nested_by_purpose(entry,
+			kentry_purpose(nested_entry), nested_entry);
 	}
 
 	return retcode;