From 47c44caa8db8d6fad0225aee92172e8615cdcca8 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sun, 21 Aug 2011 12:51:12 +0200 Subject: [PATCH] Fixed move-cursor-left bug in vgaterminal. --- sortix/vgaterminal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sortix/vgaterminal.cpp b/sortix/vgaterminal.cpp index f025edea..5821e156 100644 --- a/sortix/vgaterminal.cpp +++ b/sortix/vgaterminal.cpp @@ -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.