From e35ca56c1ef816e11a07744bdb846f33116b36f6 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 13 Jan 2010 06:47:21 +0000 Subject: [PATCH] wrap the call to Con_BasicCompleteCommandLine in a local function --- libs/console/server.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libs/console/server.c b/libs/console/server.c index 8fdf85d91..4cfd1030d 100644 --- a/libs/console/server.c +++ b/libs/console/server.c @@ -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;