Skip to content

Commit d201c51

Browse files
sanohiroclaude
andcommitted
fix: 水平スクロール後のC-aで画面が更新されない問題を修正
moveToLineStart()でtop_colをリセットする際に、 水平スクロールがあった場合はmarkFullRedraw()を呼ぶように変更。 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b176dc3 commit d201c51

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/view.zig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,6 +1477,10 @@ pub const View = struct {
14771477
}
14781478

14791479
pub fn moveToLineStart(self: *View) void {
1480+
// 水平スクロールがあった場合は再描画が必要
1481+
if (self.top_col != 0) {
1482+
self.markFullRedraw();
1483+
}
14801484
self.cursor_x = 0;
14811485
self.top_col = 0;
14821486
}

0 commit comments

Comments
 (0)