Fixed move-cursor-left bug in vgaterminal.

This commit is contained in:
Jonas 'Sortie' Termansen 2011-08-21 12:51:12 +02:00
parent 9ee93082c5
commit 47c44caa8d
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@ namespace Sortix
case 'D':
{
nat dist = ( 0 < ansiusedparams ) ? ansiparams[0] : 1;
if ( column < dist ) { line = 0; } else { column -= dist; }
if ( column < dist ) { column = 0; } else { column -= dist; }
break;
}
// Move to beginning of line N lines down.