mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2025-02-18 09:51:14 +00:00
resetting the search line index when clearing the console
This commit is contained in:
parent
533e0872c1
commit
83284b15c5
1 changed files with 4 additions and 5 deletions
|
@ -104,7 +104,7 @@ struct console_t {
|
||||||
float helpXAdjust;
|
float helpXAdjust;
|
||||||
|
|
||||||
char searchPattern[256];
|
char searchPattern[256];
|
||||||
qbool searchLineIndex;
|
int searchLineIndex;
|
||||||
qbool searchStarted;
|
qbool searchStarted;
|
||||||
|
|
||||||
qbool markMode;
|
qbool markMode;
|
||||||
|
@ -289,15 +289,14 @@ void Con_MessageMode4_f (void) {
|
||||||
|
|
||||||
static void Con_Clear_f( void )
|
static void Con_Clear_f( void )
|
||||||
{
|
{
|
||||||
int i;
|
for ( int i = 0 ; i < CON_TEXTSIZE ; i++ ) {
|
||||||
|
|
||||||
for ( i = 0 ; i < CON_TEXTSIZE ; i++ ) {
|
|
||||||
con.text[i] = (COLOR_WHITE << 8) | ' ';
|
con.text[i] = (COLOR_WHITE << 8) | ' ';
|
||||||
}
|
}
|
||||||
|
|
||||||
con.current = con.totallines - 1;
|
con.current = con.totallines - 1;
|
||||||
|
|
||||||
Con_Bottom();
|
Con_Bottom();
|
||||||
|
|
||||||
|
con.searchLineIndex = INT_MIN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue