wrap the call to Con_BasicCompleteCommandLine in a local function

This commit is contained in:
Bill Currie 2010-01-13 06:47:21 +00:00 committed by Jeff Teunissen
parent df7c5b2908
commit e35ca56c1e

View file

@ -199,6 +199,14 @@ sv_setgeometry (view_t *view)
sv_view->setgeometry (view); sv_view->setgeometry (view);
} }
static void
sv_complete (inputline_t *il)
{
view_t *view = il->user_data;
Con_BasicCompleteCommandLine (il);
sv_refresh (view);
}
static void static void
draw_output (view_t *view) draw_output (view_t *view)
{ {
@ -523,7 +531,7 @@ create_input_line (int width)
inputline_t *input_line; inputline_t *input_line;
input_line = Con_CreateInputLine (16, MAXCMDLINE, ']'); input_line = Con_CreateInputLine (16, MAXCMDLINE, ']');
input_line->complete = Con_BasicCompleteCommandLine; input_line->complete = sv_complete;
input_line->enter = Con_ExecLine; input_line->enter = Con_ExecLine;
input_line->user_data = input; input_line->user_data = input;
input_line->draw = draw_input_line; input_line->draw = draw_input_line;