mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-18 02:50:33 +00:00
engine: con_utils: don't also prepend backslash in autocompletion~
This commit is contained in:
parent
3351ecd754
commit
295adcf222
@ -1216,7 +1216,7 @@ void Con_CompleteCommand( field_t *field )
|
|||||||
|
|
||||||
if( con.matchCount == 1 )
|
if( con.matchCount == 1 )
|
||||||
{
|
{
|
||||||
Q_sprintf( con.completionField->buffer, "\\%s", con.cmds[0] );
|
Q_strncpy( con.completionField->buffer, con.cmds[0], sizeof( con.completionField->buffer ));
|
||||||
if( Cmd_Argc() == 1 ) Q_strncat( con.completionField->buffer, " ", sizeof( con.completionField->buffer ) );
|
if( Cmd_Argc() == 1 ) Q_strncat( con.completionField->buffer, " ", sizeof( con.completionField->buffer ) );
|
||||||
else Con_ConcatRemaining( temp.buffer, con.completionString );
|
else Con_ConcatRemaining( temp.buffer, con.completionString );
|
||||||
con.completionField->cursor = Q_strlen( con.completionField->buffer );
|
con.completionField->cursor = Q_strlen( con.completionField->buffer );
|
||||||
@ -1244,7 +1244,7 @@ void Con_CompleteCommand( field_t *field )
|
|||||||
con.shortestMatch[len] = 0;
|
con.shortestMatch[len] = 0;
|
||||||
|
|
||||||
// multiple matches, complete to shortest
|
// multiple matches, complete to shortest
|
||||||
Q_sprintf( con.completionField->buffer, "\\%s", con.shortestMatch );
|
Q_strncpy( con.completionField->buffer, con.shortestMatch, sizeof( con.completionField->buffer ));
|
||||||
con.completionField->cursor = Q_strlen( con.completionField->buffer );
|
con.completionField->cursor = Q_strlen( con.completionField->buffer );
|
||||||
Con_ConcatRemaining( temp.buffer, con.completionString );
|
Con_ConcatRemaining( temp.buffer, con.completionString );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user