瀏覽代碼

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

Serj Kalichev 4 年之前
父節點
當前提交
9fd19f9725
共有 1 個文件被更改,包括 3 次插入0 次删除
  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;