mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-19 07:20:50 +00:00
wrap the call to Con_BasicCompleteCommandLine in a local function
This commit is contained in:
parent
df7c5b2908
commit
e35ca56c1e
1 changed files with 9 additions and 1 deletions
|
@ -199,6 +199,14 @@ sv_setgeometry (view_t *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
|
||||
draw_output (view_t *view)
|
||||
{
|
||||
|
@ -523,7 +531,7 @@ create_input_line (int width)
|
|||
inputline_t *input_line;
|
||||
|
||||
input_line = Con_CreateInputLine (16, MAXCMDLINE, ']');
|
||||
input_line->complete = Con_BasicCompleteCommandLine;
|
||||
input_line->complete = sv_complete;
|
||||
input_line->enter = Con_ExecLine;
|
||||
input_line->user_data = input;
|
||||
input_line->draw = draw_input_line;
|
||||
|
|
Loading…
Reference in a new issue