mirror of
https://github.com/ioquake/ioq3.git
synced 2025-02-23 20:11:18 +00:00
* Fix to an obo bug in the console history recall code
This commit is contained in:
parent
ab29f29495
commit
91b2b9297a
1 changed files with 1 additions and 1 deletions
|
@ -548,7 +548,7 @@ void Console_Key (int key) {
|
||||||
|
|
||||||
if ( (key == K_MWHEELDOWN && keys[K_SHIFT].down) || ( key == K_DOWNARROW ) || ( key == K_KP_DOWNARROW ) ||
|
if ( (key == K_MWHEELDOWN && keys[K_SHIFT].down) || ( key == K_DOWNARROW ) || ( key == K_KP_DOWNARROW ) ||
|
||||||
( ( tolower(key) == 'n' ) && keys[K_CTRL].down ) ) {
|
( ( tolower(key) == 'n' ) && keys[K_CTRL].down ) ) {
|
||||||
if (historyLine == nextHistoryLine)
|
if (historyLine + 1 == nextHistoryLine)
|
||||||
return;
|
return;
|
||||||
historyLine++;
|
historyLine++;
|
||||||
g_consoleField = historyEditLines[ historyLine % COMMAND_HISTORY ];
|
g_consoleField = historyEditLines[ historyLine % COMMAND_HISTORY ];
|
||||||
|
|
Loading…
Reference in a new issue