Skip to content

Commit 3593589

Browse files
committed
Remember that on advancing line we go to column 0
1 parent e53296e commit 3593589

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mode/terminal.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ impl Cursor {
6767
/// Returns a value indicating the now active line
6868
pub fn advance_line(&mut self) -> CursorWrapEvent {
6969
self.row = (self.row + 1) % self.height;
70+
self.col = 0;
7071
CursorWrapEvent(self.row)
7172
}
7273

0 commit comments

Comments
 (0)