:: commit 0f4c63a93e2e1888028e18fef54fd25adfbf475e

Mintsuki <mintsuki@protonmail.com> — 2026-02-07 08:59

parents: 26729177df

drivers/vga_textmode: Copy attribute byte in text_move_character

diff --git a/common/drivers/vga_textmode.c b/common/drivers/vga_textmode.c
index 5fcafc30..fefb982f 100644
--- a/common/drivers/vga_textmode.c
+++ b/common/drivers/vga_textmode.c
@@ -141,6 +141,7 @@ static void text_move_character(struct flanterm_context *_ctx, size_t new_x, siz
     }
 
     ctx->back_buffer[new_y * VD_COLS + new_x * 2] = ctx->back_buffer[old_y * VD_COLS + old_x * 2];
+    ctx->back_buffer[new_y * VD_COLS + new_x * 2 + 1] = ctx->back_buffer[old_y * VD_COLS + old_x * 2 + 1];
 }
 
 static void text_set_cursor_pos(struct flanterm_context *_ctx, size_t x, size_t y) {
tab: 248 wrap: offon