@@ -272,7 +272,7 @@ void init_highlight(
272272
273273 if (copy_p != NULL )
274274 {
275- r = load_colors (copy_p );
275+ r = OK ; // This used to be used to look up the load_colors() which has been removed in libvim.
276276 vim_free (copy_p );
277277 if (r == OK )
278278 return ;
@@ -323,38 +323,6 @@ void init_highlight(
323323 }
324324}
325325
326- /*
327- * Load color file "name".
328- * Return OK for success, FAIL for failure.
329- */
330- int load_colors (char_u * name )
331- {
332- char_u * buf ;
333- int retval = FAIL ;
334- static int recursive = FALSE;
335-
336- /* When being called recursively, this is probably because setting
337- * 'background' caused the highlighting to be reloaded. This means it is
338- * working, thus we should return OK. */
339- if (recursive )
340- return OK ;
341-
342- recursive = TRUE;
343- buf = alloc (STRLEN (name ) + 12 );
344- if (buf != NULL )
345- {
346- apply_autocmds (EVENT_COLORSCHEMEPRE , name ,
347- curbuf -> b_fname , FALSE, curbuf );
348- sprintf ((char * )buf , "colors/%s.vim" , name );
349- retval = source_runtime (buf , DIP_START + DIP_OPT );
350- vim_free (buf );
351- apply_autocmds (EVENT_COLORSCHEME , name , curbuf -> b_fname , FALSE, curbuf );
352- }
353- recursive = FALSE;
354-
355- return retval ;
356- }
357-
358326static char * (color_names [28 ]) = {
359327 "Black" , "DarkBlue" , "DarkGreen" , "DarkCyan" ,
360328 "DarkRed" , "DarkMagenta" , "Brown" , "DarkYellow" ,
0 commit comments