Explorar el Código

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

Serj Kalichev hace 4 años
padre
commit
9fd19f9725
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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;