diff options
Diffstat (limited to 'src/common/showmsg.c')
-rw-r--r-- | src/common/showmsg.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/showmsg.c b/src/common/showmsg.c index 8492d6db7..102557df7 100644 --- a/src/common/showmsg.c +++ b/src/common/showmsg.c @@ -243,7 +243,7 @@ int VFPRINTF(HANDLE handle, const char *fmt, va_list argptr) memset(numbers,0,sizeof(numbers)); // skip escape and bracket - q=q+2; + q=q+2; for(;;) { if( ISDIGIT(*q) ) @@ -358,11 +358,11 @@ int VFPRINTF(HANDLE handle, const char *fmt, va_list argptr) COORD origin = {0,0}; if(num==1) { // chars from start up to and including cursor - cnt = info.dwSize.X * info.dwCursorPosition.Y + info.dwCursorPosition.X + 1; + cnt = info.dwSize.X * info.dwCursorPosition.Y + info.dwCursorPosition.X + 1; } else if(num==2) { // Number of chars on screen. - cnt = info.dwSize.X * info.dwSize.Y; + cnt = info.dwSize.X * info.dwSize.Y; SetConsoleCursorPosition(handle, origin); } else// 0 and default @@ -565,7 +565,7 @@ int VFPRINTF(FILE *file, const char *fmt, va_list argptr) // assuming regular text is starting there // skip escape and bracket - q=q+2; + q=q+2; while(1) { if( ISDIGIT(*q) ) |