1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

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

View file

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