==================== Key_CompleteBind ==================== */
| 1102 | ==================== |
| 1103 | */ |
| 1104 | static void Key_CompleteBind( char *args, int argNum ) { |
| 1105 | char *p; |
| 1106 | |
| 1107 | if ( argNum == 2 ) { |
| 1108 | // Skip "bind " |
| 1109 | p = Com_SkipTokens( args, 1, " " ); |
| 1110 | |
| 1111 | if ( p > args ) |
| 1112 | Field_CompleteKeyname(); |
| 1113 | } |
| 1114 | else if ( argNum >= 3 ) { |
| 1115 | // Skip "bind <key> " |
| 1116 | p = Com_SkipTokens( args, 2, " " ); |
| 1117 | |
| 1118 | if ( p > args ) |
| 1119 | Field_CompleteCommand( p, qtrue, qtrue ); |
| 1120 | } |
| 1121 | } |
| 1122 | |
| 1123 | /* |
| 1124 | =================== |
nothing calls this directly
no test coverage detected