MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / ClearAutoComplete

Method ClearAutoComplete

neo/framework/EditField.cpp:170–179  ·  view source on GitHub ↗

=============== idEditField::ClearAutoComplete =============== */

Source from the content-addressed store, hash-verified

168===============
169*/
170void idEditField::ClearAutoComplete( void ) {
171 if ( autoComplete.length > 0 && autoComplete.length <= (int) strlen( buffer ) ) {
172 buffer[autoComplete.length] = '\0';
173 if ( cursor > autoComplete.length ) {
174 cursor = autoComplete.length;
175 }
176 }
177 autoComplete.length = 0;
178 autoComplete.valid = false;
179}
180
181/*
182===============

Callers 2

ProcessEventMethod · 0.80
InputLineWndProcFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected