mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-11-17 21:04:45 +00:00
2.6.1.35 Page Up/Down of console history while editing
This commit is contained in:
parent
dac24a4ae8
commit
c82f15895f
@ -647,7 +647,7 @@ void DebuggerPrint ( int x, int y, const char *pText )
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
void DebuggerPrintColor( int x, int y, const conchar_t * pText )
|
||||
{
|
||||
int nLeft = x;
|
||||
@ -655,6 +655,9 @@ void DebuggerPrintColor( int x, int y, const conchar_t * pText )
|
||||
conchar_t g;
|
||||
const conchar_t *pSrc = pText;
|
||||
|
||||
if( !pText)
|
||||
return;
|
||||
|
||||
while (g = (*pSrc))
|
||||
{
|
||||
if (g == '\n')
|
||||
@ -1152,7 +1155,7 @@ void DrawConsoleCursor ()
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
void GetConsoleRect( const int y, RECT & rect )
|
||||
void GetConsoleRect ( const int y, RECT & rect )
|
||||
{
|
||||
int nLineHeight = GetConsoleLineHeightPixels();
|
||||
|
||||
@ -1170,7 +1173,7 @@ void GetConsoleRect( const int y, RECT & rect )
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
void DrawConsoleLine( const conchar_t * pText, int y )
|
||||
void DrawConsoleLine ( const conchar_t * pText, int y )
|
||||
{
|
||||
if (y < 0)
|
||||
return;
|
||||
@ -2719,6 +2722,12 @@ void DrawSubWindow_Console (Update_t bUpdate)
|
||||
DebuggerSetColorFG( DebuggerGetColor( FG_CONSOLE_OUTPUT ));
|
||||
DrawConsoleLine( g_aConsoleDisplay[ iLine ], y );
|
||||
}
|
||||
else
|
||||
{
|
||||
// bugfix: 2.6.1.34
|
||||
// scrolled past top of console... Draw blank line
|
||||
DrawConsoleLine( NULL, y );
|
||||
}
|
||||
iLine++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user